From e725a71d0efc708f7706820010d96de5815d8089 Mon Sep 17 00:00:00 2001 From: rnv Date: Wed, 20 Mar 2013 11:03:46 +0000 Subject: [PATCH] Fix for the "0051780: TC7.2.0: GEOM data is not saved if SALOME is built with CMake" bug. --- adm_local/cmake_files/FindSalomeCAS.cmake | 8 ++++++++ adm_local/cmake_files/deprecated/FindCAS.cmake | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/adm_local/cmake_files/FindSalomeCAS.cmake b/adm_local/cmake_files/FindSalomeCAS.cmake index b7cdf561b..bad0d77c4 100644 --- a/adm_local/cmake_files/FindSalomeCAS.cmake +++ b/adm_local/cmake_files/FindSalomeCAS.cmake @@ -16,3 +16,11 @@ if(EXISTS ${CAS_ROOT_DIR}) endif(WINDOWS) endif(EXISTS ${CAS_ROOT_DIR}) find_package(CAS) + +IF(CAS_StdLPlugin) + SET(CAS_STDPLUGIN StdPlugin) +ELSE(CAS_StdLPlugin) + IF(CAS_TKStdSchema) + SET(CAS_STDPLUGIN TKStdSchema) + ENDIF(CAS_TKStdSchema) +ENDIF(CAS_StdLPlugin) \ No newline at end of file diff --git a/adm_local/cmake_files/deprecated/FindCAS.cmake b/adm_local/cmake_files/deprecated/FindCAS.cmake index cb41aacc5..56a17530f 100644 --- a/adm_local/cmake_files/deprecated/FindCAS.cmake +++ b/adm_local/cmake_files/deprecated/FindCAS.cmake @@ -189,3 +189,11 @@ SET(TKIGES ${TKIGES_EA}) SET(TKSTEP ${TKSTEP_EA}) SET(TKSTL ${TKSTL_EA}) SET(TKCAF ${TKCAF_EA}) + +IF(StdPlugin) + SET(CAS_STDPLUGIN StdPlugin) +ELSE(StdPlugin) + IF(TKStdLSchema) + SET(CAS_STDPLUGIN TKStdSchema) + ENDIF(TKStdLSchema) +ENDIF(StdPlugin) \ No newline at end of file -- 2.39.2