diff options
author | Gregor Jasny <gjasny@googlemail.com> | 2015-10-18 19:53:12 (GMT) |
---|---|---|
committer | Gregor Jasny <gjasny@googlemail.com> | 2015-10-23 17:29:09 (GMT) |
commit | 601e6e1ad10b83dcb5ad09d061b04e6974cda283 (patch) | |
tree | b6658bdbf3e84d2c3e6d5aac30dcec0860e56010 /Tests/RunCMake/XcodeProject/XcodePreserveNonOptimizationFlags.cmake | |
parent | 2f269fdf0c293e80325c748c985279bc4067af3e (diff) | |
download | CMake-601e6e1ad10b83dcb5ad09d061b04e6974cda283.zip CMake-601e6e1ad10b83dcb5ad09d061b04e6974cda283.tar.gz CMake-601e6e1ad10b83dcb5ad09d061b04e6974cda283.tar.bz2 |
Xcode: Use regular expression to extract all optimisation flags (#15794)
Diffstat (limited to 'Tests/RunCMake/XcodeProject/XcodePreserveNonOptimizationFlags.cmake')
-rw-r--r-- | Tests/RunCMake/XcodeProject/XcodePreserveNonOptimizationFlags.cmake | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Tests/RunCMake/XcodeProject/XcodePreserveNonOptimizationFlags.cmake b/Tests/RunCMake/XcodeProject/XcodePreserveNonOptimizationFlags.cmake new file mode 100644 index 0000000..16f0381 --- /dev/null +++ b/Tests/RunCMake/XcodeProject/XcodePreserveNonOptimizationFlags.cmake @@ -0,0 +1,12 @@ +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) |