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/XcodeOptimizationFlags.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/XcodeOptimizationFlags.cmake')
-rw-r--r-- | Tests/RunCMake/XcodeProject/XcodeOptimizationFlags.cmake | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Tests/RunCMake/XcodeProject/XcodeOptimizationFlags.cmake b/Tests/RunCMake/XcodeProject/XcodeOptimizationFlags.cmake new file mode 100644 index 0000000..e14bf80 --- /dev/null +++ b/Tests/RunCMake/XcodeProject/XcodeOptimizationFlags.cmake @@ -0,0 +1,20 @@ +set(CMAKE_CONFIGURATION_TYPES "Release" CACHE INTERNAL "Supported configuration types") + +set(CMAKE_CXX_FLAGS_RELEASE "") + +project(XcodeOptimizationFlags CXX) + +add_library(fooO1 STATIC foo.cpp) +set_target_properties(fooO1 PROPERTIES COMPILE_OPTIONS -O1) + +add_library(fooO2 STATIC foo.cpp) +set_target_properties(fooO2 PROPERTIES COMPILE_OPTIONS -O2) + +add_library(fooO3 STATIC foo.cpp) +set_target_properties(fooO3 PROPERTIES COMPILE_OPTIONS -O3) + +add_library(fooOs STATIC foo.cpp) +set_target_properties(fooOs PROPERTIES COMPILE_OPTIONS -Os) + +add_library(fooOfast STATIC foo.cpp) +set_target_properties(fooOfast PROPERTIES COMPILE_OPTIONS -Ofast) |