You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
467 B
13 lines
467 B
set(CMAKE_CONFIGURATION_TYPES "Release" CACHE INTERNAL "Supported configuration types")
|
|
|
|
project(XcodePreserveNonOptimizationFlags CXX)
|
|
|
|
add_library(preserveStart STATIC foo.cpp)
|
|
set_property(TARGET preserveStart PROPERTY COMPILE_OPTIONS -DA -O1)
|
|
|
|
add_library(preserveBoth STATIC foo.cpp)
|
|
set_property(TARGET preserveBoth PROPERTY COMPILE_OPTIONS -DB -O1 -DC)
|
|
|
|
add_library(preserveEnd STATIC foo.cpp)
|
|
set_property(TARGET preserveEnd PROPERTY COMPILE_OPTIONS -O1 -DD)
|