File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1094,8 +1094,6 @@ if(openPMD_INSTALL)
10941094 )
10951095 " )
10961096 endif ()
1097- # install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} --build \"${CMAKE_BINARY_DIR}\" --target toml11_install)")
1098- # install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} --build \"${CMAKE_BINARY_DIR}\" --target json_install)")
10991097 if (openPMD_HAVE_PYTHON)
11001098 install (
11011099 DIRECTORY ${openPMD_SOURCE_DIR} /src/binding/python/openpmd_api
Original file line number Diff line number Diff line change 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)
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} '" )
Original file line number Diff line number Diff 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).
You can’t perform that action at this time.
0 commit comments