diff --git a/CMakeLists.txt b/CMakeLists.txt index 8eb27a1..a93c32a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -52,25 +52,8 @@ mark_as_advanced(FORCE FETCHCONTENT_UPDATES_DISCONNECTED_GOOGLETEST ) -if(EXODUSIICPP_LIBRARY_TYPE STREQUAL "STATIC") - FetchContent_GetProperties(exodusIIcpp) - if(NOT exodusIIcpp_POPULATED) - FetchContent_Populate(exodusIIcpp) - add_subdirectory(${exodusiicpp_SOURCE_DIR} ${exodusiicpp_BINARY_DIR} EXCLUDE_FROM_ALL) - endif() -else() - FetchContent_MakeAvailable(exodusIIcpp) -endif() - -if(GMSHPARSERCPP_LIBRARY_TYPE STREQUAL "STATIC") - FetchContent_GetProperties(gmshparsercpp) - if(NOT gmshparsercpp_POPULATED) - FetchContent_Populate(gmshparsercpp) - add_subdirectory(${gmshparsercpp_SOURCE_DIR} ${gmshparsercpp_BINARY_DIR} EXCLUDE_FROM_ALL) - endif() -else() - FetchContent_MakeAvailable(gmshparsercpp) -endif() +FetchContent_MakeAvailable(exodusIIcpp) +FetchContent_MakeAvailable(gmshparsercpp) if (GMSH2EXO_BUILD_TESTS) enable_testing()