]> SALOME platform Git repositories - tools/libbatch.git/commitdiff
Salome HOME
CMake: Exposed PThread root directory in config file.
authorbruneton <bruneton>
Tue, 18 Jun 2013 07:43:36 +0000 (07:43 +0000)
committerbruneton <bruneton>
Tue, 18 Jun 2013 07:43:36 +0000 (07:43 +0000)
CMakeLists.txt
misc/LibBatchConfig.cmake.in

index 70ec6b0f37fc639ca516d5d29e0792e3d53d909d..3a0c7c6818d6a68352ce472ed5ef45d6576c803b 100644 (file)
@@ -97,7 +97,7 @@ CONFIGURE_PACKAGE_CONFIG_FILE(misc/${PROJECT_NAME}Config.cmake.in
     ${PROJECT_BINARY_DIR}/${PROJECT_NAME}Config.cmake
     INSTALL_DESTINATION "${INSTALL_CMAKE_CONFIG_DIR}"
     PATH_VARS CONF_INCLUDE_DIRS INSTALL_CMAKE_CONFIG_DIR CMAKE_INSTALL_PREFIX LIBBATCH_PYTHONPATH
-              PYTHON_ROOT_DIR SWIG_ROOT_DIR)
+              PYTHON_ROOT_DIR SWIG_ROOT_DIR PTHREAD_ROOT_DIR)
 
 #   - in the install tree:
 #       Get the relative path of the include directory so 
@@ -107,7 +107,7 @@ CONFIGURE_PACKAGE_CONFIG_FILE(misc/${PROJECT_NAME}Config.cmake.in
     ${PROJECT_BINARY_DIR}/to_install/${PROJECT_NAME}Config.cmake
     INSTALL_DESTINATION "${INSTALL_CMAKE_CONFIG_DIR}"
     PATH_VARS CONF_INCLUDE_DIRS INSTALL_CMAKE_CONFIG_DIR CMAKE_INSTALL_PREFIX LIBBATCH_PYTHONPATH
-            PYTHON_ROOT_DIR SWIG_ROOT_DIR)
+            PYTHON_ROOT_DIR SWIG_ROOT_DIR PTHREAD_ROOT_DIR)
 
 WRITE_BASIC_PACKAGE_VERSION_FILE(${PROJECT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake
     VERSION ${${PROJECT_NAME_UC}_VERSION}
index 17b833c1f956878be01aecd8eb0adf1be325c6b0..1ae61cadb73661c2581a06c0a75df205be51cedd 100644 (file)
@@ -61,6 +61,8 @@ SET_AND_CHECK(LIBBATCH_ROOT_DIR_EXP "@PACKAGE_CMAKE_INSTALL_PREFIX@")
 SET(LIBBATCH_LOCAL_SUBMISSION @LIBBATCH_LOCAL_SUBMISSION@)
 SET(LIBBATCH_PYTHON_WRAPPING @LIBBATCH_PYTHON_WRAPPING@)
 
+SET_AND_CHECK(PTHREAD_ROOT_DIR_EXP "@PACKAGE_PTHREAD_ROOT_DIR@")
+
 IF(LIBBATCH_PYTHON_WRAPPING)
   SET_AND_CHECK(LIBBATCH_PYTHONPATH "@PACKAGE_LIBBATCH_PYTHONPATH@")
   SET_AND_CHECK(PYTHON_ROOT_DIR_EXP "@PACKAGE_PYTHON_ROOT_DIR@")