Skip to content

Commit

Permalink
[Comgr][CMake] Move definitions from compile options to compile defin…
Browse files Browse the repository at this point in the history
…itions

Change-Id: I6714f7b285089a74563e4a542d13d59605848808
  • Loading branch information
jmmartinez committed Dec 20, 2024
1 parent 8e148c1 commit b8f9d29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions amd/comgr/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ if(${COMGR_DISABLE_SPIRV})
list(APPEND AMD_COMGR_PRIVATE_COMPILE_OPTIONS "-DCOMGR_DISABLE_SPIRV")
endif()

list(APPEND AMD_COMGR_PRIVATE_COMPILE_OPTIONS "-DAMD_COMGR_GIT_COMMIT=${AMD_COMGR_GIT_COMMIT}")
list(APPEND AMD_COMGR_PRIVATE_COMPILE_OPTIONS "-DAMD_COMGR_GIT_BRANCH=${AMD_COMGR_GIT_BRANCH}")
list(APPEND AMD_COMGR_PRIVATE_COMPILE_DEFINITIONS "AMD_COMGR_GIT_COMMIT=${AMD_COMGR_GIT_COMMIT}")
list(APPEND AMD_COMGR_PRIVATE_COMPILE_DEFINITIONS "AMD_COMGR_GIT_BRANCH=${AMD_COMGR_GIT_BRANCH}")
message("----COMGR_GIT_COMMIT: ${AMD_COMGR_GIT_COMMIT}")
message("----COMGR_GIT_BRANCH: ${AMD_COMGR_GIT_BRANCH}")
message("")
Expand Down

0 comments on commit b8f9d29

Please sign in to comment.