This commit is contained in:
Niels Lohmann 2022-08-20 14:32:17 +02:00
parent be77d8c1e9
commit f1d65a3b12
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69

View File

@ -4,11 +4,7 @@ project(DummyImport CXX)
include(FetchContent)
set(FETCHCONTENT_QUIET OFF)
message(WARNING "CMAKE_CURRENT_SOURCE_DIR = ${CMAKE_CURRENT_SOURCE_DIR}")
message(WARNING "CMAKE_SOURCE_DIR = ${CMAKE_SOURCE_DIR}")
get_filename_component(GIT_REPOSITORY_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../../.. ABSOLUTE)
message(WARNING "GIT_REPOSITORY_DIRECTORY = ${GIT_REPOSITORY_DIRECTORY}")
FetchContent_Declare(json GIT_REPOSITORY ${GIT_REPOSITORY_DIRECTORY} GIT_TAG HEAD)
FetchContent_GetProperties(json)