Skip to content

Commit

Permalink
Remove imported map config from targets.
Browse files Browse the repository at this point in the history
  • Loading branch information
Holt59 committed Jul 11, 2024
1 parent 530d4f5 commit ad15c19
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions cmake/config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,6 @@ find_package(Qt6 CONFIG REQUIRED COMPONENTS Network QuickWidgets Widgets)

include ( "${CMAKE_CURRENT_LIST_DIR}/mo2-uibase-targets.cmake" )

get_target_property(_UIBASE_CONFIGURATIONS mo2::uibase IMPORTED_CONFIGURATIONS)

# uibase is usually be build in Debug or Release/RelWithDebInfo, so we need to map
# missing configurations to avoid issue with CMP0111
list(FIND _UIBASE_CONFIGURATIONS "RELEASE" _UIBASE_HAS_RELEASE)
if (_UIBASE_HAS_RELEASE EQUAL -1)
set_target_properties(mo2::uibase PROPERTIES
MAP_IMPORTED_CONFIG_MINSIZEREL RelWithDebInfo
MAP_IMPORTED_CONFIG_RELEASE RelWithDebInfo
)
set_property(TARGET mo2::uibase APPEND PROPERTY IMPORTED_CONFIGURATIONS MINSIZEREL)
set_property(TARGET mo2::uibase APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
else()
set_target_properties(mo2::uibase PROPERTIES
MAP_IMPORTED_CONFIG_MINSIZEREL Release
MAP_IMPORTED_CONFIG_RELWITHDEBINFO Release
)
set_property(TARGET mo2::uibase APPEND PROPERTY IMPORTED_CONFIGURATIONS MINSIZEREL)
set_property(TARGET mo2::uibase APPEND PROPERTY IMPORTED_CONFIGURATIONS RELWITHDEBINFO)
endif()

if (MO2_CMAKE_DEPRECATED_UIBASE_INCLUDE)
target_include_directories(mo2::uibase INTERFACE
Expand Down

0 comments on commit ad15c19

Please sign in to comment.