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.
cmake/Tests/RunCMake/XcodeProject/XcodeOptimizationFlags-chec...

8 lines
334 B

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()