Skip to content

Commit eb82bc7

Browse files
committed
GPA 3.11 updates
1 parent 1d7ea33 commit eb82bc7

File tree

438 files changed

+107451
-1221
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

438 files changed

+107451
-1221
lines changed

.gitignore

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,13 @@ compile_commands.json
1414
# Build results
1515
[Oo]utput/
1616
[Dd]ebug/
17-
!Common/Lib/**/[Dd]ebug
1817
[Dd]ebugPublic/
1918
[Rr]elease/
20-
!Common/Lib/**/[Rr]elease
2119
[Rr]eleases/
2220
x64/
2321
x86/
2422
bld/
2523
[Bb]in/
26-
!Common/Lib/**/[Bb]in
2724
[Oo]bj/
2825
[Ll]og/
2926
Doc/public
@@ -59,10 +56,8 @@ artifacts/
5956
*.ilk
6057
*.meta
6158
*.obj
62-
!Common/Lib/**/*.obj
6359
*.pch
6460
*.pdb
65-
!Common/Lib/**/*.pdb
6661
*.pgc
6762
*.pgd
6863
*.rsp
@@ -152,7 +147,7 @@ publish/
152147
# Publish Web Output
153148
*.[Pp]ublish.xml
154149
*.azurePubxml
155-
# TODO: Comment the next line if you want to checkin your web deploy settings
150+
# TODO: Comment the next line if you want to checkin your web deploy settings
156151
# but database connection strings (with potential passwords) will be unencrypted
157152
*.pubxml
158153
*.publishproj
@@ -252,4 +247,6 @@ _Pvt_Extensions
252247

253248
# Documentation build files
254249
docs/build
250+
.doctrees/
255251

252+
external/**

BUILD.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ order to clone/update any dependent repositories.
3131
present on the system, this script will instead do a "git pull" on those repositories to ensure that they are up to date. Please re-run
3232
this script everytime you pull new changes from GPA repository.
3333
* NOTE: For GPA 3.3 or newer, if you are updating an existing clone of the GPA repo from a GPA release prior than 3.3, you will first need to delete the Common/Lib/Ext/GoogleTest directory. Starting with GPA 3.3, GPA is now using a fork of the official GoogleTest repo. Failure to remove this directory will lead to git errors when running [pre_build.py](build/pre_build.py) or [fetch_dependencies.py](scripts/fetch_dependencies.py).
34+
* NOTE: For GPA 3.11 and newer, the Common/ directory has been removed, and the external/Lib/Ext/GoogleTest will first need to be deleted instead.
3435
* This script will also download and execute the Vulkan� SDK installer.
3536
* On Windows, running the installer may require elevation. If you've previously installed the required Vulkan version, fetch_dependencies.py will simply copy the files from the default installation location into the correct place into the GPUPerfAPI directory tree.
3637
* fetch_dependencies.py is set up to install the version of the Vulkan SDK which was used during development. If you want to use a newer version of the SDK, the following file will need to be updated:
@@ -58,7 +59,7 @@ this script everytime you pull new changes from GPA repository.
5859
##### Prerequisites
5960
* Microsoft Visual Studio 2017
6061
* Windows 10 SDK Version 10.0.10586.0 from https://developer.microsoft.com/en-US/windows/downloads/windows-10-sdk
61-
* You can override the version of the Windows 10 SDK used by modifying Common/Lib/Ext/Windows-Kits/Global-WindowsSDK.props
62+
* You can override the version of the Windows 10 SDK used by modifying external/Lib/Ext/Windows-Kits/Global-WindowsSDK.props
6263
* Microsoft .NET 4.6.2 SDK from https://www.microsoft.com/en-us/download/details.aspx?id=53321
6364

6465
##### Build Instructions

README.md

Lines changed: 9 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -31,65 +31,16 @@ Prebuilt binaries can be downloaded from the Releases page: https://github.com/G
3131
* Provides access to some raw hardware counters. See [Raw Hardware Counters](#raw-hardware-counters) for more information.
3232

3333
## What's New
34-
## Version 3.10 (01/25/22)
34+
### Version 3.11 (04/25/22)
3535
* Add support for additional GPUs and APUs.
36-
* Redefined derived counters on GCN (Vega), RDNA, and RDNA2 hardware.
37-
* New pipeline-based counters to better match hardware behavior.
38-
* GCN (Polaris) hardware:
39-
* Added: CSThreadGroupSize.
40-
* Fixed: CSThreads, CSFlatVMemInsts, HiZTilesAccepted, HiZTilesAcceptedCount, PreZQuadsCulled, PreZQuadsCulledCount, PreZQuadsSurvivingCount.
41-
* GCN (Radeon Vega Series) hardware:
42-
* Removed: VSBusy, VSBusyCycles, VSTime, HSBusy, HSBusyCycles, HSTime, DSBusy, DSBusyCycles, DSTime.
43-
* Added: VsGsBusy, VsGsBusyCycles, VsGsTime, PreTessellationBusy, PreTessellationBusyCycles, PreTessellationTime, PostTessellationBusy, PostTessellationBusyCycles, PostTessellationTime.
44-
* Removed: VertexShader group (VSVerticesIn, VSVALUInstCount, VSSALUInstCount, VSVALUBusy, VSVALUBusyCycles, VSSALUBusy, VSSALUBusyCycles).
45-
* Added: VertexGeometry group (VsGsVALUInstCount, VsGsSALUInstCount, VsGsVALUBusy, VsGsVALUBusyCycles, VsGsSALUBusy, VsGsSALUBusyCycles).
46-
* Represents combined data from vertex and geometry shaders in a VS-PS or VS-GS-PS pipeline.
47-
* Removed: HullShader group (HSPatches, HSVALUInstCount, HSSALUInstCount, HSVALUBusy, HSVALUBusyCycles, HSSALUBusy, HSSALUBusyCycles).
48-
* Added: PreTessellation group (PreTessVALUInstCount, PreTessSALUInstCount, PreTessVALUBusy, PreTessVALUBusyCycles, PreTessSALUBusy, PreTessSALUBusyCycles).
49-
* Represents combined data from vertex and hull shaders in a VS-HS-DS-PS or VS-HS-DS-GS-PS pipeline.
50-
* Removed: DomainShader group (DSVerticesIn, DSVALUInstCount, DSSALUInstCount, DSVALUBusy, DSVALUBusyCycles, DSSALUBusy, DSSALUBusyCycles).
51-
* Removed: GeometryShader group (GSPrimsIn, GSVerticesOut, GSVALUInstCount, GSSALUInstCount, GSVALUBusy, GSVALUBusyCycles, GSSALUBusy, GSSALUBusyCycles).
52-
* Added: PostTessellation group (PostTessVALUInstCount, PostTessSALUInstCount, PostTessVALUBusy, PostTessVALUBusyCycles, PostTessSALUBusy, PostTessSALUBusyCycles).
53-
* Represents combined data from domain and geometry shaders in a VS-HS-DS-PS or VS-HS-DS-GS-PS pipeline.
54-
* Added: CSThreadGroupSize.
55-
* Fixed: PSBusy, PSBusyCycles, PSTime, CSBusy, CSBusyCycles, CSTime, CSThreads, CSFlatVMemInsts, HiZTilesAccepted, HiZTilesAcceptedCount, HiZTilesRejectedCount, HiZQuadsCulled, HiZQuadsCulledCount, HiZQuadsAcceptedCount, PreZQuadsCulled, PreZQuadsCulledCount, PreZQuadsSurvivingCount.
56-
* RDNA (Radeon RX 5000 Series) hardware:
57-
* Removed: VSBusy, VSBusyCycles, VSTime, HSBusy, HSBusyCycles, HSTime, DSBusy, DSBusyCycles, DSTime.
58-
* Added: VsGsBusy, VsGsBusyCycles, VsGsTime, PreTessellationBusy, PreTessellationBusyCycles, PreTessellationTime, PostTessellationBusy, PostTessellationBusyCycles, PostTessellationTime.
59-
* Removed: VertexShader group (VSVerticesIn, VSVALUInstCount, VSSALUInstCount, VSVALUBusy, VSVALUBusyCycles, VSSALUBusy, VSSALUBusyCycles).
60-
* Added: VertexGeometry group (VsGsVALUInstCount, VsGsSALUInstCount, VsGsVALUBusy, VsGsVALUBusyCycles, VsGsSALUBusy, VsGsSALUBusyCycles).
61-
* Represents combined data from vertex and geometry shaders in a VS-PS or VS-GS-PS pipeline.
62-
* Removed: HullShader group (HSPatches, HSVALUInstCount, HSSALUInstCount, HSVALUBusy, HSVALUBusyCycles, HSSALUBusy, HSSALUBusyCycles).
63-
* Added: PreTessellation group (PreTessVALUInstCount, PreTessSALUInstCount, PreTessVALUBusy, PreTessVALUBusyCycles, PreTessSALUBusy, PreTessSALUBusyCycles).
64-
* Represents combined data from vertex and hull shaders in a VS-HS-DS-PS or VS-HS-DS-GS-PS pipeline.
65-
* Removed: DomainShader group (DSVerticesIn, DSVALUInstCount, DSSALUInstCount, DSVALUBusy, DSVALUBusyCycles, DSSALUBusy, DSSALUBusyCycles).
66-
* Removed: GeometryShader group (GSPrimsIn, GSVerticesOut, GSVALUInstCount, GSSALUInstCount, GSVALUBusy, GSVALUBusyCycles, GSSALUBusy, GSSALUBusyCycles).
67-
* Added: PostTessellation group (PostTessVALUInstCount, PostTessSALUInstCount, PostTessVALUBusy, PostTessVALUBusyCycles, PostTessSALUBusy, PostTessSALUBusyCycles).
68-
* Represents combined data from domain and geometry shaders in a VS-HS-DS-PS or VS-HS-DS-GS-PS pipeline.
69-
* Removed: PrimitivesIn.
70-
* Added: CSThreadGroupSize.
71-
* Fixed: PSBusy, PSBusyCycles, PSTime, CSBusy, CSBusyCycles, CSTime, CSThreads, HiZTilesAccepted, HiZTilesAcceptedCount, HiZTilesRejectedCount, PreZQuadsCulled, PreZQuadsCulledCount, PreZQuadsSurvivingCount.
72-
* RDNA2 (Radeon RX 6000 Series) hardware:
73-
* Removed: VSBusy, VSBusyCycles, VSTime, HSBusy, HSBusyCycles, HSTime, DSBusy, DSBusyCycles, DSTime.
74-
* Removed: VertexShader group, HullShader group, DomainShader group, GeometryShader group.
75-
* Removed: PrimitivesIn, PSVALUInstCount, PSSALUInstCount, PSVALUBusy, PSVALUBusyCycles, PSSALUBusy, PSSALUBusyCycles.
76-
* Removed: CSVALUInsts, CSVALUUtilization, CSSALUInsts, CSVFetchInsts, CSSFetchInsts, CSVWriteInsts, CSVALUBusy, CSVALUBusyCycles, CSSALUBusy, CSSALUBusyCycles.
77-
* Added: CSThreadGroupSize
78-
* Fixed: CSThreads, HiZTilesAccepted, HiZTilesAcceptedCount, HiZTilesRejectedCount, PreZQuadsCulled, PreZQuadsCulledCount, PreZQuadsSurvivingCount.
79-
* Integrated clang-tidy and clang-format into cmake build options.
80-
* New entrypoint added: GpaGetDeviceGeneration. Binary backwards compatibility is maintained.
81-
* OpenGL on Linux: Fixed hardware detection on MESA drivers.
82-
* OpenGL: Fixed hardware detection accuracy.
83-
* Setting GPA_OVERRIDE_LOG_LEVEL env var to an integer equal to a GpaLoggingType enum can be used to increase or decrease logging output.
84-
* DX11:
85-
* Fixed Adrenalin driver version detection.
86-
* Fixed setting the number of shader arrays based on client hardware.
87-
* Improvements made to the sample applications:
88-
* Extensive counter validation in DX12.
89-
* Sample apps can now confirm successful validation tests.
90-
* Sample apps now support passing in a counter file to specify which counters to enable.
91-
* Consolidated parameter parsing logic in sample apps.
92-
* In Vulkan and DX12 samples, the return code now indicates the number of errors that were reported.
36+
* Counter updates for RDNA2 (Radeon RX 6000 Series) hardware:
37+
* Added ray tracing counters for Vulkan: RayTriTests, RayBoxTests, TotalRayTests, and RayTestsPerWave.
38+
* Fixed values incorrectly reported by counters PSExportStalls and PSExportStallCycles.
39+
* On all hardware: renamed counter "DepthStencilTestBusyCount" to "DepthStencilTestBusyCycles" for consistency with other similar counters.
40+
* Added support for Ninja compiler.
41+
* Improved error reporting.
42+
* Improved counter validation.
43+
* Disabled support for Mesa driver. We hope to re-enable it in a future release.
9344

9445
## System Requirements
9546
* An AMD Radeon GPU or APU based on Graphics IP version 8 and newer.
@@ -153,7 +104,6 @@ There are some counters that are returning unexpected results on specific hardwa
153104
* AMD Radeon RX 6800, DX12: HiZ and PreZ counters may consistently report 33% higher than expected.
154105
* AMD Radeon RX 6800, DX11: CSThreadGroups may consistently report 33% higher than expected.
155106
* AMD Radeon RX 6700M, DX11: CSLDSBankConflict and CSLDSBankConflictCycles may consistently report as much as 30x higher than expected.
156-
* AMD Radeon RX 5000 Series, DX12: ScalarCacheHitCount may consistently report 0.
157107
* AMD Radeon RX 480, DX12: CulledPrims and PSPixelsOut may inconsistently report higher than expected.
158108

159109
### Counter Validation Errors in D3D12ColorCube Sample App

ReleaseNotes.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
# GPU Performance API Release Notes
22
---
33

4+
## Version 3.11 (04/25/22)
5+
* Add support for additional GPUs and APUs.
6+
* Counter updates for RDNA2 (Radeon RX 6000 Series) hardware:
7+
* Added ray tracing counters for Vulkan: RayTriTests, RayBoxTests, TotalRayTests, and RayTestsPerWave.
8+
* Fixed values incorrectly reported by counters PSExportStalls and PSExportStallCycles.
9+
* On all hardware: renamed counter "DepthStencilTestBusyCount" to "DepthStencilTestBusyCycles" for consistency with other similar counters.
10+
* External dependent repositories are now cloned into an "external/" subdirectory within the gpu_performance_api repository.
11+
* Added support for Ninja compiler.
12+
* Improved error reporting.
13+
* Improved counter validation.
14+
* Disabled support for Mesa driver. We hope to re-enable it in a future release.
15+
416
## Version 3.10 (01/25/22)
517
* Add support for additional GPUs and APUs.
618
* Redefined derived counters on GCN (Vega), RDNA, and RDNA2 hardware.

build/cmake_modules/defs.cmake

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
## Copyright (c) 2018-2021 Advanced Micro Devices, Inc. All rights reserved.
1+
## Copyright (c) 2018-2022 Advanced Micro Devices, Inc. All rights reserved.
22
cmake_minimum_required(VERSION 3.5.1)
33

44
## Define the GPA version
55
set(GPA_MAJOR_VERSION 3)
6-
set(GPA_MINOR_VERSION 10)
6+
set(GPA_MINOR_VERSION 11)
77
set(GPA_UPDATE_VERSION 0)
88

99
if(NOT DEFINED GPA_BUILD_NUMBER)
1010
set(GPA_BUILD_NUMBER 0)
1111
endif()
1212

1313
if(NOT DEFINED GPA_ROOT)
14-
set(GPA_ROOT ${CMAKE_CURRENT_SOURCE_DIR})
14+
set(GPA_ROOT ${CMAKE_CURRENT_LIST_DIR}/../..)
1515
endif()
1616

1717
if(NOT DEFINED GPA_OUTPUT_DIR)
18-
set(GPA_OUTPUT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/output)
18+
set(GPA_OUTPUT_DIR ${GPA_ROOT}/output)
1919
endif()
2020

2121
## Set the Common Directories
22-
set(COMMON_DIR "${CMAKE_SOURCE_DIR}/../Common")
22+
set(COMMON_DIR "${GPA_ROOT}/external")
2323
set(COMMON_DIR_LIB "${COMMON_DIR}/Lib")
2424
set(COMMON_DIR_SRC "${COMMON_DIR}/Src")
2525
set(GPA_PUBLIC_HEADER_REL_PATH "include")
@@ -69,15 +69,17 @@ set(GPA_SRC_GL_TRIANGLE_REL_PATH "source/examples/ope
6969
set(GPA_SRC_GL_TRIANGLE "${GPA_ROOT}/${GPA_SRC_GL_TRIANGLE_REL_PATH}")
7070
set(GPA_SRC_D3D11_TRIANGLE_REL_PATH "source/examples/dx11/dx11_triangle")
7171
set(GPA_SRC_D3D11_TRIANGLE "${GPA_ROOT}/${GPA_SRC_D3D11_TRIANGLE_REL_PATH}")
72+
set(GPA_SRC_THIRD_PARTY_REL_PATH "source/third_party")
73+
set(GPA_SRC_THIRD_PARTY "${GPA_ROOT}/${GPA_SRC_THIRD_PARTY_REL_PATH}")
7274

7375
set(GOOGLETEST_DIR ${COMMON_DIR_LIB}/Ext/GoogleTest)
7476

7577
## List of common cmake files
76-
set(CMAKE_COMMON_SRC_GLOBAL_CMAKE_MODULE ${COMMON_DIR_SRC}/CMakeModules/Global-Common.cmake)
77-
set(CMAKE_COMMON_SRC_GLOBAL_INTERNAL ${COMMON_DIR_SRC}/CMakeModules/Global-Internal.cmake)
78+
set(CMAKE_COMMON_SRC_GLOBAL_CMAKE_MODULE ${GPA_SRC_THIRD_PARTY}/CMakeModules/Global-Common.cmake)
79+
set(CMAKE_COMMON_SRC_GLOBAL_INTERNAL ${GPA_SRC_THIRD_PARTY}/CMakeModules/Global-Internal.cmake)
7880
set(CMAKE_COMMON_SRC_GLOBAL_ADL_UTIL ${COMMON_DIR_SRC}/ADLUtil/Global-ADLUtil.cmake)
79-
set(CMAKE_COMMON_SRC_GLOBAL_AMD_DX_EXT ${COMMON_DIR_SRC}/AmdDxExt/Global-AmdDxExt.cmake)
80-
set(CMAKE_COMMON_SRC_GLOBAL_AMD_VK_EXT ${COMMON_DIR_SRC}/AmdVkExt/Global-AmdVkExt.cmake)
81+
set(CMAKE_COMMON_SRC_GLOBAL_AMD_DX_EXT ${GPA_SRC_THIRD_PARTY}/AmdDxExt/Global-AmdDxExt.cmake)
82+
set(CMAKE_COMMON_SRC_GLOBAL_AMD_VK_EXT ${GPA_SRC_THIRD_PARTY}/AmdVkExt/Global-AmdVkExt.cmake)
8183
set(CMAKE_COMMON_SRC_GLOBAL_DEVICE_INFO ${COMMON_DIR_SRC}/DeviceInfo/Global-DeviceInfo.cmake)
8284
set(CMAKE_COMMON_SRC_GLOBAL_DYNAMIC_LIBRARY_MODULE ${COMMON_DIR_SRC}/DynamicLibraryModule/Global-DynamicLibraryModule.cmake)
8385
set(CMAKE_COMMON_SRC_GLOBAL_TSINGLETON ${COMMON_DIR_SRC}/TSingleton/Global-TSingleton.cmake)
@@ -86,7 +88,7 @@ set(CMAKE_COMMON_LIB_GLOBAL_AMD_ADL ${COMMON_DIR_LIB}/AM
8688
set(CMAKE_COMMON_LIB_GLOBAL_AMD_OPENCL_NO_LIB ${COMMON_DIR_LIB}/AMD/APPSDK/Global-OpenCL-NoLib.cmake)
8789
set(CMAKE_COMMON_LIB_GLOBAL_AMD_OPENCL ${COMMON_DIR_LIB}/AMD/APPSDK/Global-OpenCL.cmake)
8890
set(CMAKE_COMMON_LIB_GLOBAL_EXT_OPENGL ${COMMON_DIR_LIB}/Ext/OpenGL/Global-OpenGL.cmake)
89-
set(CMAKE_COMMON_LIB_GLOBAL_EXT_VULKAN ${COMMON_DIR_LIB}/Ext/Vulkan/Global-Vulkan.cmake)
91+
set(CMAKE_COMMON_LIB_GLOBAL_EXT_VULKAN ${GPA_SRC_THIRD_PARTY}/Vulkan/Global-Vulkan.cmake)
9092
set(CMAKE_COMMON_LIB_GLOBAL_EXT_WINDOWS_SDK ${COMMON_DIR_LIB}/Ext/Windows-Kits/Global-WindowsSDK.cmake)
9193

9294
## Options controlling the behavior of clang tools

build/cmake_modules/gpa_version.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Copyright (c) 2020-2021 Advanced Micro Devices, Inc. All rights reserved.
1+
## Copyright (c) 2020-2022 Advanced Micro Devices, Inc. All rights reserved.
22
cmake_minimum_required(VERSION 3.5.1)
33

44
include(${CMAKE_CURRENT_LIST_DIR}/defs.cmake)
@@ -20,7 +20,7 @@ set(GPA_VERSION_HEADER_FILE_CONTENT "//=========================================
2020
2121
// Make sure to increment GPA_FUNCTION_TABLE_MAJOR_VERSION_NUMBER anytime GPA_MAJOR_VERSION is incremented
2222
#define GPA_MAJOR_VERSION ${GPA_MAJOR_VERSION} ///< Macro for GPA major version.
23-
#define GPA_MINOR_VERSION ${GPA_MINOR_VERSION} ///< Macro for GPA minor version.
23+
#define GPA_MINOR_VERSION ${GPA_MINOR_VERSION} ///< Macro for GPA minor version.
2424
#define GPA_UPDATE_VERSION ${GPA_UPDATE_VERSION} ///< Macro for GPA update version.
2525
2626
/// Macro for GPA build number
@@ -36,7 +36,7 @@ set(GPA_VERSION_HEADER_FILE_CONTENT "//=========================================
3636
3737
#define AMDT_PROJECT_SUFFIX_STR GPA_VERSION_STRING(AMDT_PROJECT_SUFFIX) ///< Macro for project suffix string.
3838
39-
#define GPA_COPYRIGHT_CURRENT_YEAR 2022 ///< Macro for current year.
39+
#define GPA_COPYRIGHT_CURRENT_YEAR ${CURRENT_YEAR} ///< Macro for current year.
4040
4141
#define GPA_COPYRIGHT_STR \\
4242
\"Copyright (c) 2010-\" GPA_VERSION_STRING(GPA_COPYRIGHT_CURRENT_YEAR) \" Advanced Micro Devices, Inc. All rights reserved.\" ///< Macro for copyright string.

build/cmake_modules/targets.cmake

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ set(DEPTH "./")
88
include(${GPA_CMAKE_MODULES_DIR}/defs.cmake)
99
include(${GPA_CMAKE_MODULES_DIR}/build_flags.cmake)
1010

11+
include(CTest)
12+
enable_testing()
13+
1114
if(UNIX)
1215
set(skipopencl ON)
1316
endif()
@@ -51,8 +54,10 @@ if(WIN32)
5154
message(STATUS "Skipping DX12 from the build")
5255
endif()
5356

54-
add_subdirectory(${GPA_SRC_PUBLIC_COUNTER_COMPILER} ${CMAKE_BINARY_DIR}/${GPA_SRC_PUBLIC_COUNTER_COMPILER_REL_PATH})
55-
add_subdirectory(${GPA_SRC_PUBLIC_COUNTER_INPUT_FILES} ${CMAKE_BINARY_DIR}/${GPA_SRC_PUBLIC_COUNTER_INPUT_FILES_REL_PATH})
57+
if(CMAKE_GENERATOR MATCHES "Visual Studio")
58+
add_subdirectory(${GPA_SRC_PUBLIC_COUNTER_COMPILER} ${CMAKE_BINARY_DIR}/${GPA_SRC_PUBLIC_COUNTER_COMPILER_REL_PATH})
59+
add_subdirectory(${GPA_SRC_PUBLIC_COUNTER_INPUT_FILES} ${CMAKE_BINARY_DIR}/${GPA_SRC_PUBLIC_COUNTER_INPUT_FILES_REL_PATH})
60+
endif()
5661
endif()
5762

5863
if(NOT ${skipopengl})

build/cmake_modules/utils.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ macro(ADD_GPA_USER_COMPILE_DEFINITIONS)
5454
set_property(TARGET ${GPA_PROJECT_NAME} PROPERTY COMPILE_DEFINITIONS $<$<CONFIG:DEBUG>:USE_DEBUG_GPA> ${ADDITIONAL_INTERNAL_DEFINITION})
5555
endmacro()
5656

57-
if(WIN32)
57+
if(CMAKE_GENERATOR MATCHES "Visual Studio")
5858
set(EXCLUDE_FROM_BUILD EXCLUDE_FROM_DEFAULT_BUILD)
5959
else()
6060
set(EXCLUDE_FROM_BUILD EXCLUDE_FROM_ALL)

0 commit comments

Comments
 (0)