File tree 2 files changed +17
-1
lines changed
2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 1
- function (find_json)
1
+ function (find_json)
2
2
if (TARGET nlohmann_json::nlohmann_json)
3
3
message (STATUS "nlohmann_json::nlohmann_json target already imported" )
4
4
elseif (openPMD_USE_INTERNAL_JSON)
40
40
endif ()
41
41
FetchContent_MakeAvailable(fetchednlohmann_json)
42
42
43
+ # advanced fetch options
44
+ mark_as_advanced (FETCHCONTENT_BASE_DIR)
45
+ mark_as_advanced (FETCHCONTENT_FULLY_DISCONNECTED)
46
+ mark_as_advanced (FETCHCONTENT_QUIET)
47
+ #mark_as_advanced(FETCHCONTENT_SOURCE_DIR_FETCHEDnlohmann_json)
48
+ mark_as_advanced (FETCHCONTENT_UPDATES_DISCONNECTED)
49
+ #mark_as_advanced(FETCHCONTENT_UPDATES_DISCONNECTED_FETCHEDnlohmann_json)
43
50
elseif (NOT openPMD_USE_INTERNAL_JSON)
44
51
find_package (nlohmann_json 3.9.1 CONFIG REQUIRED)
45
52
message (STATUS "nlohmann_json: Found version '${nlohmann_json_VERSION} '" )
Original file line number Diff line number Diff line change @@ -39,6 +39,15 @@ function(find_toml11)
39
39
)
40
40
endif ()
41
41
FetchContent_MakeAvailable(fetchedtoml11)
42
+
43
+ # advanced fetch options
44
+ mark_as_advanced (FETCHCONTENT_BASE_DIR)
45
+ mark_as_advanced (FETCHCONTENT_FULLY_DISCONNECTED)
46
+ mark_as_advanced (FETCHCONTENT_QUIET)
47
+ #mark_as_advanced(FETCHCONTENT_SOURCE_DIR_FETCHEDtoml11)
48
+ mark_as_advanced (FETCHCONTENT_UPDATES_DISCONNECTED)
49
+ #mark_as_advanced(FETCHCONTENT_UPDATES_DISCONNECTED_FETCHEDtoml11)
50
+
42
51
elseif (NOT openPMD_USE_INTERNAL_TOML11)
43
52
# toml11 4.0 was a breaking change. This is reflected in the library's CMake
44
53
# logic: version 4.0 is not accepted by a call to find_package(toml11 3.7).
You can’t perform that action at this time.
0 commit comments