mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
commit
7a5fcea91c
|
@ -141,7 +141,7 @@ CMAKE_DEPENDENT_OPTION(TESTS_DYNAMIC_LOADING_EXAMPLES "Enable build of dynamic l
|
|||
add_library(sol2 INTERFACE)
|
||||
target_include_directories(sol2 INTERFACE
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
||||
$<INSTALL_INTERFACE:include/sol>)
|
||||
$<INSTALL_INTERFACE:include>)
|
||||
|
||||
# # Version configurations
|
||||
configure_package_config_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
|
||||
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
|
||||
if(TARGET sol2_single)
|
||||
get_target_property(SOL2_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)
|
||||
set_and_check(SOL2_INCLUDE_DIRS "${SOL2_SINGLE_INCLUDE_DIRS}")
|
||||
set(SOL2_LIBRARIES_SINGLE sol2_single)
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue
Block a user