summaryrefslogtreecommitdiffstats
path: root/Tests/QtAutoUicInterface
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2017-08-05 12:37:03 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2017-08-05 12:37:03 (GMT)
commita13716a5dc1277d46beebffe6304214c22cf6ae3 (patch)
tree2571506b375c86c1fb9da4dd45ae374ade82fdde /Tests/QtAutoUicInterface
parent6d83757f2620413918f76de975cd38efa3157416 (diff)
downloadCMake-a13716a5dc1277d46beebffe6304214c22cf6ae3.zip
CMake-a13716a5dc1277d46beebffe6304214c22cf6ae3.tar.gz
CMake-a13716a5dc1277d46beebffe6304214c22cf6ae3.tar.bz2
Autogen: Enable per-config support
Enables the AUTOGEN per-config include directories and wrapper sources for multi configuration generators. Closes #16460
Diffstat (limited to 'Tests/QtAutoUicInterface')
-rw-r--r--Tests/QtAutoUicInterface/CMakeLists.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/Tests/QtAutoUicInterface/CMakeLists.txt b/Tests/QtAutoUicInterface/CMakeLists.txt
index 3ea1294..a5c2d99 100644
--- a/Tests/QtAutoUicInterface/CMakeLists.txt
+++ b/Tests/QtAutoUicInterface/CMakeLists.txt
@@ -53,8 +53,9 @@ set_property(TARGET KI18n APPEND PROPERTY
# END upstream
-if(${CMAKE_GENERATOR} MATCHES "Visual Studio")
-set(INC_DIR "include_${CMAKE_BUILD_TYPE}" )
+get_property(_GENERATOR_IS_MULTI_CONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
+if(_GENERATOR_IS_MULTI_CONFIG)
+set(INC_DIR "include_$<CONFIG>" )
else()
set(INC_DIR "include" )
endif()