Quellcode durchsuchen

Update CMakeLists.txt

blueloveTH vor 8 Monaten
Ursprung
Commit
7394683eaa
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  1. 2 1
      CMakeLists.txt

+ 2 - 1
CMakeLists.txt

@@ -5,7 +5,6 @@ project(pocketpy)
 set(CMAKE_C_STANDARD 11)
 set(CMAKE_C_STANDARD_REQUIRED ON)
 
-include(FetchContent)
 include(CMakeOptions.txt)
 
 if(WIN32)
@@ -78,6 +77,8 @@ endif()
 
 if(PK_ENABLE_MIMALLOC)
     message(">> Fetching mimalloc")
+    include(FetchContent)
+    
     FetchContent_Declare(
         mimalloc
         GIT_REPOSITORY https://github.com/microsoft/mimalloc.git