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.
8 lines
334 B
8 lines
334 B
9 years ago
|
foreach(level 1 2 3 s fast)
|
||
|
file(STRINGS ${RunCMake_TEST_BINARY_DIR}/XcodeOptimizationFlags.xcodeproj/project.pbxproj actual-${level}
|
||
|
REGEX "GCC_OPTIMIZATION_LEVEL = ${level};" LIMIT_COUNT 1)
|
||
|
if(NOT actual-${level})
|
||
|
message(SEND_ERROR "Optimization level '${level}' not found in Xcode project.")
|
||
|
endif()
|
||
|
endforeach()
|