We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62a5ebb commit 29749e6Copy full SHA for 29749e6
cmake/modules/AddSwiftUnittests.cmake
@@ -49,8 +49,8 @@ function(add_swift_unittest test_dirname)
49
set_property(TARGET "${test_dirname}" APPEND PROPERTY LINK_LIBRARIES "log")
50
elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
51
if(CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64|AMD64")
52
- set_property(TARGET "${test_dirname}" APPEND_STRING PROPERTY COMPILE_FLAGS
53
- " -march=core2")
+ target_compile_options(${test_dirname} PRIVATE
+ -march=core2)
54
endif()
55
56
0 commit comments