Bonjour à tous,
Je cherche faire de tel sorte qu'un code s’exécute sans qu'il aille chercher les fichiers sur Git. le but ici est de pouvoir l'utiliser hors réseau. car j'ai déjà le projet github sur ma machine.
Voici le code en question:
include(FetchContent)
set(FETCHCONTENT_UPDATES_DISCONNECTED TRUE)
FetchContent_Declare(module
GIT_REPOSITORY https://github.com/author/project
GIT_TAG 1c50747ddb2ffe68daa685da3ac21781f98e1e60
)
FetchContent_GetProperties(module)
if(NOT module_POPULATED)
FetchContent_Populate(module)
add_subdirectory(${module_SOURCE_DIR} ${module_BINARY_DIR} EXCLUDE_FROM_ALL)
endif()
Ce que je cherche à avoir.
include(FetchContent)
FetchContent_Declare(module
LOCAL_REPOSITORY c:/git/author/project
)
FetchContent_GetProperties(module)
if(NOT module_POPULATED)
FetchContent_Populate(module)
add_subdirectory(${module_SOURCE_DIR} ${module_BINARY_DIR} EXCLUDE_FROM_ALL)
endif()
Merci d'avance pour votre aide.