]> SALOME platform Git repositories - tools/adao_interface.git/commitdiff
Salome HOME
Py2Cpp detection en mode config
authorAnthony Geay <anthony.geay@edf.fr>
Wed, 27 Feb 2019 09:33:55 +0000 (10:33 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Wed, 27 Feb 2019 09:33:55 +0000 (10:33 +0100)
CMakeLists.txt

index cedb6671087784655558b9df353a18dc97f0537c..7b6d503f6456ce1692811e53cb0f74d2d70a77df 100644 (file)
@@ -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)