Skip to content

Commit 8232120

Browse files
committed
remove reading previous compile flags
1 parent 440d4d6 commit 8232120

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

share/rocmcmakebuildtools/cmake/ROCMSetupVersion.cmake

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,7 @@ END
237237
")
238238
target_sources(${TARGET} PRIVATE ${RC_OUTPUT})
239239
if(TARGET_TYPE STREQUAL "SHARED_LIBRARY" OR TARGET_TYPE STREQUAL "MODULE_LIBRARY")
240-
get_source_file_property(RC_OUTPUT_COMPILE_FLAGS ${RC_OUTPUT} COMPILE_FLAGS)
241-
set_source_files_properties(${RC_OUTPUT} PROPERTIES
242-
COMPILE_FLAGS "${RC_OUTPUT_COMPILE_FLAGS};-DDLL_BUILD")
240+
set_source_files_properties(${RC_OUTPUT} PROPERTIES COMPILE_FLAGS -DDLL_BUILD)
243241
endif()
244242
message(STATUS "Added version resource to ${TARGET}: ${DESCRIPTION}")
245243
endif()

0 commit comments

Comments
 (0)