|
|
@@ -7,6 +7,8 @@ endif()
|
|
|
set(found_inherited_GCC_PREPROCESSOR_DEFINITIONS 1)
|
|
|
set(found_inherited_OTHER_CFLAGS 1)
|
|
|
set(found_inherited_OTHER_LDFLAGS 1)
|
|
|
+set(found_inherited_OTHER_SWIFT_FLAGS 1)
|
|
|
+set(found_inherited_SWIFT_ACTIVE_COMPILATION_CONDITIONS 1)
|
|
|
|
|
|
file(STRINGS "${xcProjectFile}" lines)
|
|
|
foreach(line IN LISTS lines)
|
|
|
@@ -32,6 +34,20 @@ foreach(line IN LISTS lines)
|
|
|
endif()
|
|
|
endif()
|
|
|
|
|
|
+ if(line MATCHES [[OTHER_SWIFT_FLAGS]])
|
|
|
+ if(NOT line MATCHES [["\$\(inherited\)"]])
|
|
|
+ string(APPEND relevant_lines " ${line}\n")
|
|
|
+ set(found_inherited_OTHER_SWIFT_FLAGS 0)
|
|
|
+ endif()
|
|
|
+ endif()
|
|
|
+
|
|
|
+ if(line MATCHES [[SWIFT_ACTIVE_COMPILATION_CONDITIONS]])
|
|
|
+ if(NOT line MATCHES [["\$\(inherited\)"]])
|
|
|
+ string(APPEND relevant_lines " ${line}\n")
|
|
|
+ set(found_inherited_SWIFT_ACTIVE_COMPILATION_CONDITIONS 0)
|
|
|
+ endif()
|
|
|
+ endif()
|
|
|
+
|
|
|
endforeach()
|
|
|
|
|
|
if(NOT found_inherited_GCC_PREPROCESSOR_DEFINITIONS)
|
|
|
@@ -43,6 +59,14 @@ endif()
|
|
|
if(NOT found_inherited_OTHER_LDFLAGS)
|
|
|
string(APPEND RunCMake_TEST_FAILED "Found missing inherited value for OTHER_LDFLAGS in\n ${xcProjectFile}\n")
|
|
|
endif()
|
|
|
+if(CMake_TEST_Swift)
|
|
|
+ if(NOT found_inherited_OTHER_SWIFT_FLAGS)
|
|
|
+ string(APPEND RunCMake_TEST_FAILED "Found missing inherited value for OTHER_SWIFT_FLAGS in\n ${xcProjectFile}\n")
|
|
|
+ endif()
|
|
|
+ if(NOT found_inherited_SWIFT_ACTIVE_COMPILATION_CONDITIONS)
|
|
|
+ string(APPEND RunCMake_TEST_FAILED "Found missing inherited value for SWIFT_ACTIVE_COMPILATION_CONDITIONS in\n ${xcProjectFile}\n")
|
|
|
+ endif()
|
|
|
+endif()
|
|
|
|
|
|
if(RunCMake_TEST_FAILED)
|
|
|
string(APPEND RunCMake_TEST_FAILED "Relevant lines include\n${relevant_lines}")
|