From e17ca19a435adf4508624bfc68df3f6ce7b71b02 Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Tue, 11 Nov 2025 09:40:12 +0100 Subject: [PATCH 1/4] Exclude mdspan from INSTALL target --- ThirdParty/custom-surfio/CMakeLists.txt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/ThirdParty/custom-surfio/CMakeLists.txt b/ThirdParty/custom-surfio/CMakeLists.txt index 017dcd64ef6..4aa985c3711 100644 --- a/ThirdParty/custom-surfio/CMakeLists.txt +++ b/ThirdParty/custom-surfio/CMakeLists.txt @@ -8,7 +8,13 @@ FetchContent_Declare( GIT_REPOSITORY https://github.com/kokkos/mdspan.git GIT_TAG 9ceface91483775a6c74d06ebf717bbb2768452f # mdspan-0.6.0 ) -FetchContent_MakeAvailable(mdspan) + +# Disable install for mdspan by excluding it from INSTALL_ALL +FetchContent_GetProperties(mdspan) +if(NOT mdspan_POPULATED) + FetchContent_Populate(mdspan) + add_subdirectory(${mdspan_SOURCE_DIR} ${mdspan_BINARY_DIR} EXCLUDE_FROM_ALL) +endif() # surfio_lib set(SRC_PATH "${CMAKE_CURRENT_LIST_DIR}/surfio/src/lib") @@ -23,7 +29,8 @@ target_sources( target_include_directories( surfio_lib INTERFACE ${SRC_PATH}/include - PRIVATE $ PRIVATE ../mio ) +target_link_libraries(surfio_lib PRIVATE mdspan) + From 707cf7f68b5c0b9efa3aa4b3e490cfa1e5f1bafb Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Tue, 11 Nov 2025 09:40:34 +0100 Subject: [PATCH 2/4] Exclude zfp from INSTALL target --- ThirdParty/openzgy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ThirdParty/openzgy b/ThirdParty/openzgy index 504732e284a..5babbb8937b 160000 --- a/ThirdParty/openzgy +++ b/ThirdParty/openzgy @@ -1 +1 @@ -Subproject commit 504732e284a276f20dbdf77557e2da37596d638e +Subproject commit 5babbb8937bb9914a846951ada561714d021952a From 796dbb5b5e7f124fec6074f746d4773c5c72f054 Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Tue, 11 Nov 2025 12:18:21 +0100 Subject: [PATCH 3/4] Avoid install of googletest --- ApplicationLibCode/UnitTests/CMakeLists.txt | 3 +++ .../custom-opm-common/custom-opm-parser-tests/CMakeLists.txt | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/ApplicationLibCode/UnitTests/CMakeLists.txt b/ApplicationLibCode/UnitTests/CMakeLists.txt index a66cc3eda0c..39aa43bef15 100644 --- a/ApplicationLibCode/UnitTests/CMakeLists.txt +++ b/ApplicationLibCode/UnitTests/CMakeLists.txt @@ -141,6 +141,9 @@ FetchContent_Declare( GIT_TAG release-1.11.0 ) +set(BUILD_GMOCK OFF CACHE BOOL "" FORCE) +set(BUILD_GTEST ON CACHE BOOL "" FORCE) +set(INSTALL_GTEST OFF CACHE BOOL "" FORCE) FetchContent_MakeAvailable(googletest) # ############################################################################## diff --git a/ThirdParty/custom-opm-common/custom-opm-parser-tests/CMakeLists.txt b/ThirdParty/custom-opm-common/custom-opm-parser-tests/CMakeLists.txt index 250ee97d265..74384098a2c 100644 --- a/ThirdParty/custom-opm-common/custom-opm-parser-tests/CMakeLists.txt +++ b/ThirdParty/custom-opm-common/custom-opm-parser-tests/CMakeLists.txt @@ -7,6 +7,10 @@ FetchContent_Declare( GIT_REPOSITORY https://github.com/google/googletest.git GIT_TAG release-1.11.0 ) + +set(BUILD_GMOCK OFF CACHE BOOL "" FORCE) +set(BUILD_GTEST ON CACHE BOOL "" FORCE) +set(INSTALL_GTEST OFF CACHE BOOL "" FORCE) FetchContent_MakeAvailable(googletest) set(THREADS_PREFER_PTHREAD_FLAG ON) From 8bd62c6a29c6b80cf415242d8e5e081fbe76c141 Mon Sep 17 00:00:00 2001 From: magnesj <1793152+magnesj@users.noreply.github.com> Date: Tue, 11 Nov 2025 11:18:54 +0000 Subject: [PATCH 4/4] Fixes by cmake-format --- ApplicationLibCode/UnitTests/CMakeLists.txt | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/ApplicationLibCode/UnitTests/CMakeLists.txt b/ApplicationLibCode/UnitTests/CMakeLists.txt index 39aa43bef15..63b50b84c0b 100644 --- a/ApplicationLibCode/UnitTests/CMakeLists.txt +++ b/ApplicationLibCode/UnitTests/CMakeLists.txt @@ -141,9 +141,18 @@ FetchContent_Declare( GIT_TAG release-1.11.0 ) -set(BUILD_GMOCK OFF CACHE BOOL "" FORCE) -set(BUILD_GTEST ON CACHE BOOL "" FORCE) -set(INSTALL_GTEST OFF CACHE BOOL "" FORCE) +set(BUILD_GMOCK + OFF + CACHE BOOL "" FORCE +) +set(BUILD_GTEST + ON + CACHE BOOL "" FORCE +) +set(INSTALL_GTEST + OFF + CACHE BOOL "" FORCE +) FetchContent_MakeAvailable(googletest) # ##############################################################################