mirror of
https://github.com/hch12907/orbum.git
synced 2024-06-02 19:38:16 -04:00
Partial build Fix
This commit is contained in:
parent
208c48d5a1
commit
63198b9f94
12
external/CMakeLists.txt
vendored
12
external/CMakeLists.txt
vendored
|
@ -2,15 +2,5 @@ cmake_minimum_required(VERSION 3.1)
|
|||
|
||||
project(external CXX)
|
||||
|
||||
set(Boost_USE_STATIC_LIBS OFF)
|
||||
set(Boost_USE_MULTITHREADED ON)
|
||||
set(Boost_USE_STATIC_RUNTIME OFF)
|
||||
add_subdirectory(boost)
|
||||
|
||||
#set(BOOST_ROOT "${CMAKE_SOURCE_DIR}/external/boost")
|
||||
#set(BOOST_ROOT "C:/Shared/Dev/Projects/boost_1_65_1")
|
||||
find_package(Boost REQUIRED COMPONENTS log filesystem)
|
||||
|
||||
# Allow main projects to use
|
||||
set(Boost_FOUND ${Boost_FOUND} PARENT_SCOPE)
|
||||
set(Boost_INCLUDE_DIRS "${Boost_INCLUDE_DIRS}" PARENT_SCOPE)
|
||||
set(Boost_LIBRARIES "${Boost_LIBRARIES}" PARENT_SCOPE)
|
||||
|
|
|
@ -145,14 +145,16 @@ target_compile_definitions(
|
|||
|
||||
target_include_directories(
|
||||
liborbum PUBLIC
|
||||
"${Boost_INCLUDE_DIR}"
|
||||
"${CMAKE_SOURCE_DIR}/project/liborbum/src"
|
||||
"${CMAKE_SOURCE_DIR}/project/utilities/src"
|
||||
)
|
||||
|
||||
target_link_libraries(
|
||||
liborbum
|
||||
${Boost_LIBRARIES}
|
||||
PUBLIC
|
||||
Boost::boost
|
||||
Boost::filesystem
|
||||
Boost::log
|
||||
)
|
||||
|
||||
install(
|
||||
|
|
Loading…
Reference in a new issue