blob: 8cd834824022baf7484db175d1e7483d7d3b586d [file] [edit]
set(project_file "${RunCMake_TEST_BINARY_DIR}/SystemHeaderSearchPaths.xcodeproj/project.pbxproj")
if(NOT EXISTS "${project_file}")
set(RunCMake_TEST_FAILED "Project file ${project_file} does not exist.")
return()
endif()
file(READ "${project_file}" project_contents)
if(NOT project_contents MATCHES [[SYSTEM_HEADER_SEARCH_PATHS = [^;]*SystemHeaders]])
string(APPEND RunCMake_TEST_FAILED "Missing SystemHeaders in SYSTEM_HEADER_SEARCH_PATHS.\n")
endif()
if(NOT project_contents MATCHES [[COMPILER_FLAGS = "-isystem [^;]*SystemHeaders]])
string(APPEND RunCMake_TEST_FAILED "Missing -isystem for SystemHeaders in per-source COMPILER_FLAGS.\n")
endif()