forked from boostorg/mp11
Update CMakeLists.txt
This commit is contained in:
@@ -7,11 +7,9 @@ cmake_minimum_required(VERSION 3.5...3.16)
|
||||
project(boost_mp11 VERSION 1.73.0 LANGUAGES CXX)
|
||||
|
||||
add_library(boost_mp11 INTERFACE)
|
||||
set_property(TARGET boost_mp11 PROPERTY EXPORT_NAME mp11)
|
||||
|
||||
add_library(Boost::mp11 ALIAS boost_mp11)
|
||||
|
||||
target_include_directories(boost_mp11 INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> $<INSTALL_INTERFACE:include>)
|
||||
target_include_directories(boost_mp11 INTERFACE include)
|
||||
target_compile_features(boost_mp11 INTERFACE cxx_alias_templates cxx_variadic_templates cxx_decltype)
|
||||
|
||||
if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
|
||||
@@ -56,9 +54,7 @@ include(BoostInstall OPTIONAL RESULT_VARIABLE HAVE_BOOST_INSTALL)
|
||||
|
||||
if(HAVE_BOOST_INSTALL)
|
||||
|
||||
install(DIRECTORY include/ DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
|
||||
|
||||
boost_install(boost_mp11)
|
||||
boost_install(TARGETS boost_mp11 HEADER_DIRECTORY include/)
|
||||
|
||||
endif()
|
||||
|
||||
|
Reference in New Issue
Block a user