Skip to content

Commit 2fc0b9b

Browse files
committed
[cmake] Set global property Cpp2Py_FOUND TRUE in config.cmake file
1 parent d326372 commit 2fc0b9b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmake/Cpp2PyConfig.cmake.in

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Multiple inclusion guard
22
if(NOT CPP2PY_FOUND)
33
set(CPP2PY_FOUND True)
4+
set_property(GLOBAL PROPERTY Cpp2Py_FOUND TRUE)
45

56
# Version
67
set(CPP2PY_VERSION @CPP2PY_VERSION@ CACHE STRING "Cpp2Py Version")
@@ -18,7 +19,7 @@ set(CPP2PY_PYTHON_NUMPY_VERSION_LT_17 @PYTHON_NUMPY_VERSION_LT_17@ CACHE BOOL "T
1819
# Root of the Cpp2Py installation
1920
set(CPP2PY_ROOT @CMAKE_INSTALL_PREFIX@ CACHE PATH "Root of Cpp2Py")
2021

21-
MESSAGE(STATUS "Found Cpp2pyConfig.cmake with version ${CPP2PY_VERSION}, hash = ${CPP2PY_GIT_HASH}")
22+
MESSAGE(STATUS "Found Cpp2PyConfig.cmake with version ${CPP2PY_VERSION}, hash = ${CPP2PY_GIT_HASH}")
2223

2324
# Mac specific
2425
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")

0 commit comments

Comments
 (0)