forked from boostorg/mp11
Move BoostInstall call inside the root project section
This commit is contained in:
@ -51,11 +51,7 @@ if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
|
|||||||
# Do not use the default BoostInstall versioned layout on Windows when standalone
|
# Do not use the default BoostInstall versioned layout on Windows when standalone
|
||||||
set(BOOST_INSTALL_LAYOUT "system" CACHE STRING "Installation layout (versioned, tagged, or system)")
|
set(BOOST_INSTALL_LAYOUT "system" CACHE STRING "Installation layout (versioned, tagged, or system)")
|
||||||
|
|
||||||
endif()
|
include(BoostInstall)
|
||||||
|
|
||||||
include(BoostInstall OPTIONAL RESULT_VARIABLE HAVE_BOOST_INSTALL)
|
|
||||||
|
|
||||||
if(HAVE_BOOST_INSTALL)
|
|
||||||
|
|
||||||
boost_install(TARGETS boost_mp11 HEADER_DIRECTORY include/)
|
boost_install(TARGETS boost_mp11 HEADER_DIRECTORY include/)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user