Fixed build on Fedora with boost. I'm not sure why it worked on FreeBSD but in Fedora 39 CMake didn't set boost up properly, or maybe the FetchContent(Boost) just never worked and it always found the installed boost library? But it fetches and sets up dynamically now...
This commit is contained in:
parent
e5c068ddf7
commit
5db186e8da
@ -54,11 +54,12 @@ FetchContent_Declare(eigen
|
||||
FetchContent_MakeAvailable(eigen)
|
||||
|
||||
# boost dependency
|
||||
|
||||
FetchContent_Declare(Boost
|
||||
GIT_REPOSITORY https://github.com/boostorg/boost
|
||||
GIT_TAG boost-1.82.0)
|
||||
GIT_TAG boost-1.84.0)
|
||||
set(BOOST_INCLUDE_LIBRARIES property_tree)
|
||||
FetchContent_MakeAvailable(Boost)
|
||||
|
||||
# Add qtrocket subdirectories. These are components that will be linked in
|
||||
|
||||
|
||||
|
@ -19,10 +19,12 @@ add_library(utils
|
||||
math/UtilityMathFunctions.h)
|
||||
|
||||
|
||||
target_include_directories(utils PRIVATE
|
||||
${Boost_INCLUDE_DIR})
|
||||
#target_include_directories(utils PRIVATE
|
||||
# ${Boost_INCLUDE_DIRS})
|
||||
|
||||
|
||||
target_link_libraries(utils PUBLIC
|
||||
libcurl
|
||||
Boost::property_tree
|
||||
jsoncpp_static
|
||||
eigen)
|
||||
|
Loading…
x
Reference in New Issue
Block a user