mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-08 07:10:12 -05:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user