Skip to content

Commit 29749e6

Browse files
authored
Update AddSwiftUnittests.cmake
1 parent 62a5ebb commit 29749e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmake/modules/AddSwiftUnittests.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ function(add_swift_unittest test_dirname)
4949
set_property(TARGET "${test_dirname}" APPEND PROPERTY LINK_LIBRARIES "log")
5050
elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
5151
if(CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64|AMD64")
52-
set_property(TARGET "${test_dirname}" APPEND_STRING PROPERTY COMPILE_FLAGS
53-
" -march=core2")
52+
target_compile_options(${test_dirname} PRIVATE
53+
-march=core2)
5454
endif()
5555
endif()
5656

0 commit comments

Comments
 (0)