remove-fetchcontent-usage.patch (1021B)
1 diff --git i/CMakeLists.txt w/CMakeLists.txt 2 index 8822ae8..e4e212c 100644 3 --- i/CMakeLists.txt 4 +++ w/CMakeLists.txt 5 @@ -33,8 +33,7 @@ endif() 6 include(FetchContent) 7 8 FetchContent_Declare(gtl 9 - GIT_REPOSITORY https://github.com/greg7mdp/gtl.git 10 - GIT_TAG v1.2.0) 11 + SOURCE_DIR @gtlSrc@) 12 FetchContent_MakeAvailable(gtl) 13 14 set(PREVIOUS_BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS}) 15 @@ -43,8 +42,7 @@ set(CATCH_BUILD_STATIC_LIBRARY ON) 16 set(GEODESK_LIBERO ON) 17 # Fetch Catch2 from its GitHub repository 18 FetchContent_Declare(Catch2 19 - GIT_REPOSITORY https://github.com/catchorg/Catch2.git 20 - GIT_TAG v3.7.1 21 + SOURCE_DIR @catch2Src@ 22 ) 23 FetchContent_MakeAvailable(Catch2) 24 set(BUILD_SHARED_LIBS ${PREVIOUS_BUILD_SHARED_LIBS}) 25 @@ -152,4 +150,4 @@ if(NOT GEODESK_PYTHON AND NOT BUILD_SHARED_LIBS) 26 endif() 27 28 message(STATUS "C++ compiler: ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER}") 29 -message(STATUS "MSVC_VERSION: ${MSVC_VERSION}") 30 \ No newline at end of file 31 +message(STATUS "MSVC_VERSION: ${MSVC_VERSION}")