Skip to content

Commit 0a0ef54

Browse files
committed
Cleanup
1 parent 99bc222 commit 0a0ef54

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

cmake/dependencies/json.cmake

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function(find_json)
1+
function(find_json)
22
if(TARGET nlohmann_json::nlohmann_json)
33
message(STATUS "nlohmann_json::nlohmann_json target already imported")
44
elseif(openPMD_USE_INTERNAL_JSON)
@@ -40,6 +40,13 @@
4040
endif()
4141
FetchContent_MakeAvailable(fetchednlohmann_json)
4242

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)
4350
elseif(NOT openPMD_USE_INTERNAL_JSON)
4451
find_package(nlohmann_json 3.9.1 CONFIG REQUIRED)
4552
message(STATUS "nlohmann_json: Found version '${nlohmann_json_VERSION}'")

cmake/dependencies/toml11.cmake

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,15 @@ function(find_toml11)
3939
)
4040
endif()
4141
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+
4251
elseif(NOT openPMD_USE_INTERNAL_TOML11)
4352
# toml11 4.0 was a breaking change. This is reflected in the library's CMake
4453
# logic: version 4.0 is not accepted by a call to find_package(toml11 3.7).

0 commit comments

Comments
 (0)