Skip to content

Commit 7836eeb

Browse files
authored
Fix export no registry (#27)
Using `INTERNAL` will force it to off and there is no way to enable it. I have the same fix in the GridTools branch for gridtools core.
1 parent 47d3fdc commit 7836eeb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ file(STRINGS "version.txt" __CPP_BINDGEN_VERSION)
55
project(cpp_bindgen VERSION ${__CPP_BINDGEN_VERSION} LANGUAGES CXX)
66
unset(__CPP_BINDGEN_VERSION)
77

8-
# Switch default of NO_PACKAGE_REGISTRY. TODO: Can be removed after CMake 3.15
9-
set(CMAKE_EXPORT_NO_PACKAGE_REGISTRY ON CACHE INTERNAL "")
8+
# Switch default of NO_PACKAGE_REGISTRY. TODO: Can be removed with CMake 3.15+
9+
set(CMAKE_EXPORT_NO_PACKAGE_REGISTRY ON CACHE BOOL "")
10+
mark_as_advanced(CMAKE_EXPORT_NO_PACKAGE_REGISTRY)
1011

1112
include(CTest)
1213

0 commit comments

Comments
 (0)