From 227a599c1e22d20e960d325e93f44b2934cc40f3 Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Wed, 27 Feb 2019 10:33:55 +0100 Subject: [PATCH] Py2Cpp detection en mode config --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cedb667..7b6d503 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -39,7 +39,7 @@ option(AEL_ENABLE_TESTS "Build tests (default ON)." ON) if(AEL_ENABLE_TESTS) if(EXISTS ${PY2CPP_ROOT_DIR}) set(PY2CPP_ROOT_DIR $ENV{PY2CPP_ROOT_DIR} CACHE PATH "Path to Py2cpp") - list(APPEND CMAKE_MODULE_PATH "${PY2CPP_ROOT_DIR}/lib/cmake/py2cpp") + set(Py2cpp_DIR "${PY2CPP_ROOT_DIR}/lib/cmake/py2cpp") find_package(Py2cpp REQUIRED) get_target_property(PY2CPP_INCLUDE_DIR py2cpp INTERFACE_INCLUDE_DIRECTORIES) get_target_property(PY2CPP_LIB py2cpp IMPORTED_LOCATION_RELEASE) -- 2.39.2