summaryrefslogtreecommitdiffstats
path: root/Tests/QtAutogen/TestMacros.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-10-20 20:37:59 (GMT)
committerBrad King <brad.king@kitware.com>2020-12-16 19:04:30 (GMT)
commit92d7b456e581453cf7a223c60c8734a88d887534 (patch)
tree99970c99741a78116befb01a1b4c4f90f8da5e95 /Tests/QtAutogen/TestMacros.cmake
parent3ffebbaefb876f40c2d2751b58800cacf4951407 (diff)
downloadCMake-92d7b456e581453cf7a223c60c8734a88d887534.zip
CMake-92d7b456e581453cf7a223c60c8734a88d887534.tar.gz
CMake-92d7b456e581453cf7a223c60c8734a88d887534.tar.bz2
Autogen: Add support for per-config sources
Fixes: #20682
Diffstat (limited to 'Tests/QtAutogen/TestMacros.cmake')
-rw-r--r--Tests/QtAutogen/TestMacros.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/QtAutogen/TestMacros.cmake b/Tests/QtAutogen/TestMacros.cmake
index 89b00d7..1024996 100644
--- a/Tests/QtAutogen/TestMacros.cmake
+++ b/Tests/QtAutogen/TestMacros.cmake
@@ -9,6 +9,11 @@ list(APPEND Autogen_BUILD_OPTIONS
"-DCMAKE_AUTOGEN_VERBOSE=1"
"-DQT_QMAKE_EXECUTABLE:FILEPATH=${QT_QMAKE_EXECUTABLE}"
)
+# XXX(xcode-per-cfg-src): Drop the NO_PER_CONFIG_SOURCES exclusion
+# when the Xcode generator supports per-config sources.
+if(CMAKE_GENERATOR STREQUAL "Xcode")
+ list(APPEND Autogen_BUILD_OPTIONS -DNO_PER_CONFIG_SOURCES=1)
+endif()
# A macro to add a QtAutogen test
macro(ADD_AUTOGEN_TEST NAME)