2
0
mirror of https://github.com/boostorg/nowide.git synced 2026-02-15 01:02:17 +00:00
Files
nowide/Config.cmake.in
Alexander Grund 7054b4b2a6 Allow building as standalone (No Boost references at all)
Update conversion script
Fix references in Code
Add tests
2020-03-15 18:44:21 +01:00

21 lines
569 B
CMake

@PACKAGE_INIT@
set(_boost_nowide_superproject "@BOOST_SUPERPROJECT_SOURCE_DIR@")
include(CMakeFindDependencyMacro)
if(_boost_nowide_superproject)
foreach(dep IN ITEMS boost_config boost_smart_ptr boost_static_assert)
find_dependency(${dep})
endforeach()
else()
# Default boost libs are static on windows and dynamic on linux
if(WIN32 AND "${Boost_USE_STATIC_LIBS}" STREQUAL "")
set(Boost_USE_STATIC_LIBS ON)
endif()
find_dependency(Boost 1.56)
endif()
include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake")
check_required_components("@PROJECT_NAME@")