--- CMakeLists.txt 2023-05-11 09:00:20.000000000 +0800 +++ CMakeLists.txt 2024-01-04 14:37:24.000000000 +0800 @@ -27,7 +27,7 @@ # Set default minimum C++ standard if(FINITE_DIFF_TOPLEVEL_PROJECT) - set(CMAKE_CXX_STANDARD 11) + set(CMAKE_CXX_STANDARD 14) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) endif() @@ -63,11 +63,11 @@ target_link_libraries(finitediff_finitediff PRIVATE finitediff::warnings) # Eigen -include(eigen) +find_package(Eigen3 3.3 REQUIRED NO_MODULE) target_link_libraries(finitediff_finitediff PUBLIC Eigen3::Eigen) # Logger -include(spdlog) +find_package(spdlog REQUIRED) target_link_libraries(finitediff_finitediff PUBLIC spdlog::spdlog) ################################################################################ --- tests/CMakeLists.txt 2023-05-11 09:00:20.000000000 +0800 +++ tests/CMakeLists.txt 2024-01-04 14:53:35.000000000 +0800 @@ -18,7 +18,7 @@ include(finitediff_warnings) target_link_libraries(finitediff_tests PRIVATE finitediff::warnings) -include(catch2) +find_package(catch2) target_link_libraries(finitediff_tests PUBLIC Catch2::Catch2WithMain) ################################################################################ @@ -31,8 +31,6 @@ # Register tests ################################################################################ -FetchContent_GetProperties(catch2) -list(APPEND CMAKE_MODULE_PATH ${catch2_SOURCE_DIR}/extras) include(Catch) # Register tests