]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
CMake: introducing KERNEL_DEFINITIONS and completing KERNEL_INCLUDE_DIRS to have
authorbruneton <bruneton>
Wed, 11 Sep 2013 08:40:19 +0000 (08:40 +0000)
committerbruneton <bruneton>
Wed, 11 Sep 2013 08:40:19 +0000 (08:40 +0000)
MPI. This avoids redetecting MPI in GUI. Also fixed a typo in SALOMEDSImpl.

salome_adm/cmake_files/SalomeKERNELConfig.cmake.in
src/SALOMEDSImpl/CMakeLists.txt

index 7a3dc823cc64a6a4a5253aef87241ff3e3079183..c2b0bc658432faa4373e44e5675e0998f7cc1f5c 100644 (file)
@@ -46,13 +46,19 @@ ENDIF()
 # Package root dir:
 SET_AND_CHECK(KERNEL_ROOT_DIR_EXP "@PACKAGE_CMAKE_INSTALL_PREFIX@")
 
-# Include directories
+# Include directories and definitions
 SET_AND_CHECK(KERNEL_INCLUDE_DIRS "${KERNEL_ROOT_DIR_EXP}/@SALOME_INSTALL_HEADERS@")
+SET(KERNEL_DEFINITIONS)
 
 #### Now the specificities
 
 # Options exported by the package:
 SET(SALOME_USE_MPI     @SALOME_USE_MPI@)
+IF(SALOME_USE_MPI)
+  SET(KERNEL_INCLUDE_DIRS "${KERNEL_INCLUDE_DIRS};@MPI_INCLUDE_DIRS@")
+  SET(KERNEL_DEFINITIONS "@MPI_DEFINITIONS@")
+ENDIF()
+
 SET(SALOME_BUILD_DOC   @SALOME_BUILD_DOC@)
 SET(SALOME_BUILD_TESTS @SALOME_BUILD_TESTS@)
 SET(SALOME_LIGHT_ONLY  @SALOME_LIGHT_ONLY@)
index ca25fb1dfeb7711adcb828fc6cad5b3485b99fa6..403810919d6635e3312c8a15a23c50ce09fb9722 100755 (executable)
@@ -19,7 +19,7 @@
 
 INCLUDE_DIRECTORIES(
   ${PTHREAD_INCLUDE_DIR}
-  ${HDF5_INCLUDE_DIR}
+  ${HDF5_INCLUDE_DIRS}
   ${Boost_INCLUDE_DIR}
   ${PROJECT_BINARY_DIR}/salome_adm
   ${CMAKE_CURRENT_SOURCE_DIR}/../Basics