Skip to content

Commit

Permalink
Move PackageProject.cmake include declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
threeal authored and kris-jusiak committed Jun 20, 2024
1 parent 22fd26f commit f17a00a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ option(BOOST_UT_ENABLE_INSTALL "Enable install targets" ${PROJECT_IS_TOP_LEVEL})
option(BOOST_UT_USE_WARNINGS_AS_ERORS "Build the tests" ${PROJECT_IS_TOP_LEVEL})
option(BOOST_UT_DISABLE_MODULE "Disable ut module" OFF)

if(BOOST_UT_ENABLE_INSTALL AND NOT CMAKE_SKIP_INSTALL_RULES)
include(cmake/PackageProject.cmake)
endif()

add_library(ut INTERFACE)

if(NOT DEFINED INCLUDE_INSTALL_DIR)
Expand Down Expand Up @@ -66,6 +62,7 @@ if(BOOST_UT_DISABLE_MODULE)
endif()

if(BOOST_UT_ENABLE_INSTALL AND NOT CMAKE_SKIP_INSTALL_RULES)
include(cmake/PackageProject.cmake)
# Create target Boost::ut and install target
packageProject(
NAME ${PROJECT_NAME}
Expand Down

0 comments on commit f17a00a

Please sign in to comment.