diff --git a/CMakeLists.txt b/CMakeLists.txt index 99f3f05..2a39684 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,20 +4,20 @@ project(src/eesunhong LANGUAGES Fortran) set(CMAKE_POSITION_INDEPENDENT_CODE ON) -#set(BUILD_TESTING OFF) -#include(FetchContent) -#FetchContent_Declare( -# fortran_stdlib -# GIT_REPOSITORY https://github.com/fortran-lang/stdlib.git -# GIT_TAG df1e2f0ed0cbe2fbd9c1f20dcb5bd1a4bba95bb2 # v3.0.0 -#) -#FetchContent_MakeAvailable(fortran_stdlib) -#set(BUILD_TESTING ON) +set(BUILD_TESTING OFF) +include(FetchContent) +FetchContent_Declare( + fortran_stdlib + GIT_REPOSITORY https://github.com/fortran-lang/stdlib.git + GIT_TAG df1e2f0ed0cbe2fbd9c1f20dcb5bd1a4bba95bb2 # v3.0.0 +) +FetchContent_MakeAvailable(fortran_stdlib) +set(BUILD_TESTING ON) add_library(polyroots OBJECT third_party/polyroots-fortran/polyroots_cmplx_roots_gen.f90) add_library(roots OBJECT third_party/roots-fortran/root_module.F90) -add_library(eesunhong_recipes_replacements OBJECT src/eesunhong_recipes_replacements.f90) -target_link_libraries(eesunhong_recipes_replacements PUBLIC fortran_stdlib) +#add_library(eesunhong_recipes_replacements OBJECT src/eesunhong_recipes_replacements.f90) +#target_link_libraries(eesunhong_recipes_replacements PUBLIC fortran_stdlib) #add_library(eesunhong_fortran_library SHARED $ $) #target_link_libraries(eesunhong_fortran_library PUBLIC fortran_stdlib)