From: Anthony Geay Date: Wed, 27 Feb 2019 09:33:55 +0000 (+0100) Subject: Py2Cpp detection en mode config X-Git-Tag: V9_4_0~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=227a599c1e22d20e960d325e93f44b2934cc40f3;p=tools%2Fadao_interface.git Py2Cpp detection en mode config --- 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)