Autogen: Enable per-config support

Enables the AUTOGEN per-config include directories and wrapper sources
for multi configuration generators.

Closes #16460
This commit is contained in:
Sebastian Holtermann
2017-08-05 14:37:03 +02:00
parent 6d83757f26
commit a13716a5dc
2 changed files with 3 additions and 12 deletions
+3 -2
View File
@@ -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()