]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Include SalomeMacros.cmake with NO_POLICY_SCOPE to apply policies
authorvsr <vsr@opencascade.com>
Fri, 17 Apr 2020 08:45:01 +0000 (11:45 +0300)
committervsr <vsr@opencascade.com>
Fri, 17 Apr 2020 08:59:18 +0000 (11:59 +0300)
CMakeLists.txt
src/AppQuickStart/app-template/CMakeLists.txt

index 3d1ebe5d70a0f1447fb3d3afd601f68ad3c27c5d..3bd7da09566911775383781fa358e58f1c930355 100755 (executable)
@@ -38,7 +38,7 @@ SET(${PROJECT_NAME_UC}_VERSION_DEV 1)
 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)
+  INCLUDE(SalomeMacros NO_POLICY_SCOPE)
 ELSE()
   MESSAGE(FATAL_ERROR "We absolutely need the Salome CMake configuration files, please define CONFIGURATION_ROOT_DIR !")
 ENDIF()
index 5b0360f7b6a88a8cffa73846ec32caf661e2f5d5..caa9f356ef84c580b0f69330fe61732b5f6cc93e 100644 (file)
@@ -35,7 +35,7 @@ SET(${PROJECT_NAME_UC}_VERSION
 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)
+  INCLUDE(SalomeMacros NO_POLICY_SCOPE)
 ELSE()
   MESSAGE(FATAL_ERROR "We absolutely need the Salome CMake configuration files, please define CONFIGURATION_ROOT_DIR !")
 ENDIF()
@@ -44,7 +44,6 @@ ENDIF()
 # ===========
 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")
   FIND_PACKAGE(SalomeKERNEL REQUIRED)
   KERNEL_WITH_CORBA() # check whether KERNEL built with CORBA
 ELSE(EXISTS ${KERNEL_ROOT_DIR})