fix sol2-config.cmake.in

This commit is contained in:
Roman Sztergbaum 2018-06-22 22:02:11 +02:00 committed by ThePhD
parent 8b52c35249
commit 2894f2a573

View File

@ -26,13 +26,16 @@ include("${CMAKE_CURRENT_LIST_DIR}/sol2-targets.cmake")
MESSAGE(STATUS ${CMAKE_CURRENT_LIST_DIR})
get_target_property(SOL_INCLUDE_DIRS
sol2 INTERFACE_INCLUDE_DIRECTORIES)
if (TARGET sol2)
get_target_property(SOL2_INCLUDE_DIRS
sol2 INTERFACE_INCLUDE_DIRECTORIES)
set_and_check(SOL2_INCLUDE_DIRS "${SOL2_INCLUDE_DIRS}")
set(SOL2_LIBRARIES sol2)
endif()
get_target_property(SOL_SINGLE_INCLUDE_DIRS
sol2_single INTERFACE_INCLUDE_DIRECTORIES)
set_and_check(SOL2_INCLUDE_DIRS "${SOL2_INCLUDE_DIRS}")
set_and_check(SOL2_INCLUDE_DIRS "${SOL2_SINGLE_INCLUDE_DIRS}")
set(SOL2_LIBRARIES sol2)
set(SOL2_LIBRARIES_SINGLE sol2_single)
if(TARGET sol2_single)
get_target_property(SOL_SINGLE_INCLUDE_DIRS
sol2_single INTERFACE_INCLUDE_DIRECTORIES)
set_and_check(SOL2_INCLUDE_DIRS "${SOL2_SINGLE_INCLUDE_DIRS}")
set(SOL2_LIBRARIES_SINGLE sol2_single)
endif()