Partial build Fix

This commit is contained in:
Mahmood(Thunder07) 2018-01-09 14:53:25 +00:00
parent 208c48d5a1
commit 63198b9f94
2 changed files with 5 additions and 13 deletions

View file

@ -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)

View file

@ -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(