We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ba3185f + 0721857 commit e512900Copy full SHA for e512900
CMakeLists.txt
@@ -48,7 +48,10 @@ option(USE_PETSC "Use PETSC solver library" OFF)
48
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
49
50
# Boost Archive
51
-find_package(Boost REQUIRED COMPONENTS filesystem system)
+find_package(Boost REQUIRED COMPONENTS filesystem)
52
+if(Boost_MAJOR_VERSION EQUAL 1 AND Boost_MINOR_VERSION LESS 69)
53
+ find_package(Boost REQUIRED COMPONENTS filesystem system)
54
+endif()
55
include_directories(${BOOST_INCLUDE_DIRS})
56
link_libraries(${Boost_FILESYSTEM_LIBRARY} ${Boost_SYSTEM_LIBRARY})
57
0 commit comments