]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
SALOME configuration repository:
authorrnv <rnv@opencascade.com>
Mon, 27 Jun 2016 08:53:54 +0000 (11:53 +0300)
committerrnv <rnv@opencascade.com>
Mon, 27 Jun 2016 08:53:54 +0000 (11:53 +0300)
1) Remove unnecessary "include"
2) Use CONFIGURATION_ROOT_DIR instead KERNEL_ROOT_DIR.

doc/salome/gui/CMakeLists.txt
src/AppQuickStart/app-template/CMakeLists.txt

index f211f87811bfeabc685dc41a5ed5c24f35045082..14d3f08d4db584b989d97a115fdbab375921a2d0 100755 (executable)
@@ -17,8 +17,6 @@
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 
-INCLUDE(${CMAKE_SOURCE_DIR}/salome_adm/cmake_files/SalomeMacros.cmake)
-
 SALOME_CONFIGURE_FILE(doxyfile.in doxyfile)
 SALOME_CONFIGURE_FILE(static/header.html.in static/header.html)
 
index edb4838ae0576313d8391a28e4d93dc1a548e19d..f1c320af509df6b9f9bc26bc8ad050d4b21c180c 100644 (file)
@@ -33,12 +33,21 @@ SET(${PROJECT_NAME_UC}_PATCH_VERSION 0)
 SET(${PROJECT_NAME_UC}_VERSION
   ${${PROJECT_NAME_UC}_MAJOR_VERSION}.${${PROJECT_NAME_UC}_MINOR_VERSION}.${${PROJECT_NAME_UC}_PATCH_VERSION})
 
+
+# Common CMake macros
+SET(CONFIGURATION_ROOT_DIR $ENV{CONFIGURATION_ROOT_DIR} CACHE PATH "Path to the Salome CMake configuration files")
+IF(EXISTS ${CONFIGURATION_ROOT_DIR})
+  LIST(APPEND CMAKE_MODULE_PATH "${CONFIGURATION_ROOT_DIR}/cmake")
+  INCLUDE(SalomeMacros)
+ELSE()
+  MESSAGE(FATAL_ERROR "We absolutely need the Salome CMake configuration files, please define CONFIGURATION_ROOT_DIR !")
+ENDIF()
+
 # Find KERNEL
 # ===========
 SET(KERNEL_ROOT_DIR $ENV{KERNEL_ROOT_DIR} CACHE PATH "Path to the Salome KERNEL")
 IF(EXISTS ${KERNEL_ROOT_DIR})
   LIST(APPEND CMAKE_MODULE_PATH "${KERNEL_ROOT_DIR}/salome_adm/cmake_files")
-  INCLUDE(SalomeMacros)
   FIND_PACKAGE(SalomeKERNEL REQUIRED)
   KERNEL_WITH_CORBA() # check whether KERNEL builded with CORBA
 ELSE(EXISTS ${KERNEL_ROOT_DIR})