You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

32 lines
1.2 KiB

# Copyright 2021 Ingemar Hedvall
# SPDX-License-Identifier: MIT
if (NOT Boost_FOUND)
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_MULTITHREADED ON)
set(Boost_ARCHITECTURE -x64)
set(Boost_NO_WARN_NEW_VERSIONS ON)
set(Boost_DEBUG OFF)
set(Boost_INCLUDE_DIR "C:/boost/include/boost-1_87")
include_directories(${Boost_INCLUDE_DIR})
find_package(Boost COMPONENTS locale filesystem system)
message(STATUS "Boost Found (Try 1): " ${Boost_FOUND})
message(STATUS "Boost Version: " ${Boost_VERSION_STRING})
message(STATUS "Boost Include Dirs: " ${Boost_INCLUDE_DIRS})
message(STATUS "Boost Library Dirs: " ${Boost_LIBRARY_DIRS})
message(STATUS "Boost Libraries: " ${Boost_LIBRARIES})
message(STATUS "Boost Root: " ${Boost_ROOT})
if (NOT Boost_FOUND)
set(Boost_ROOT ${COMP_DIR}/boost/latest)
find_package(Boost REQUIRED COMPONENTS locale filesystem system)
message(STATUS "Boost Found (Try 2): " ${Boost_FOUND})
message(STATUS "Boost Version: " ${Boost_VERSION_STRING})
message(STATUS "Boost Include Dirs: " ${Boost_INCLUDE_DIRS})
message(STATUS "Boost Library Dirs: " ${Boost_LIBRARY_DIRS})
message(STATUS "Boost Libraries: " ${Boost_LIBRARIES})
endif()
endif()