Skip to content

Commit ebcae69

Browse files
jmmartinezlamb-j
authored andcommitted
[Comgr][CMake] Move definitions from compile options to compile definitions
Change-Id: I6714f7b285089a74563e4a542d13d59605848808
1 parent 37c96f1 commit ebcae69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

amd/comgr/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ if(${COMGR_DISABLE_SPIRV})
171171
list(APPEND AMD_COMGR_PRIVATE_COMPILE_DEFINITIONS "COMGR_DISABLE_SPIRV")
172172
endif()
173173

174-
list(APPEND AMD_COMGR_PRIVATE_COMPILE_OPTIONS "-DAMD_COMGR_GIT_COMMIT=${AMD_COMGR_GIT_COMMIT}")
175-
list(APPEND AMD_COMGR_PRIVATE_COMPILE_OPTIONS "-DAMD_COMGR_GIT_BRANCH=${AMD_COMGR_GIT_BRANCH}")
174+
list(APPEND AMD_COMGR_PRIVATE_COMPILE_DEFINITIONS "AMD_COMGR_GIT_COMMIT=${AMD_COMGR_GIT_COMMIT}")
175+
list(APPEND AMD_COMGR_PRIVATE_COMPILE_DEFINITIONS "AMD_COMGR_GIT_BRANCH=${AMD_COMGR_GIT_BRANCH}")
176176
message("----COMGR_GIT_COMMIT: ${AMD_COMGR_GIT_COMMIT}")
177177
message("----COMGR_GIT_BRANCH: ${AMD_COMGR_GIT_BRANCH}")
178178
message("")

0 commit comments

Comments
 (0)