From: adam Date: Mon, 21 Sep 2009 15:18:25 +0000 (+0000) Subject: yacs compatibility X-Git-Tag: V5_1_3rc1~36 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=19b22e7a10fb2536f8a28f65b6fe8c2a63e4937e;p=modules%2Fkernel.git yacs compatibility --- diff --git a/salome_adm/cmake_files/am2cmake.py b/salome_adm/cmake_files/am2cmake.py index 875baadd2..00b58695d 100644 --- a/salome_adm/cmake_files/am2cmake.py +++ b/salome_adm/cmake_files/am2cmake.py @@ -638,10 +638,12 @@ class CMakeFile(object): SET(AM_CXXFLAGS ${AM_CXXFLAGS} -DHAVE_SALOME_CONFIG -I${CMAKE_BINARY_DIR}/salome_adm/unix -include SALOMEconfig.h) ''') else: - newlines.append(r''' - SET(AM_CPPFLAGS ${AM_CPPFLAGS} -DHAVE_SALOME_CONFIG -I${KERNEL_ROOT_DIR}/include/salome -include SALOMEconfig.h) - SET(AM_CXXFLAGS ${AM_CXXFLAGS} -DHAVE_SALOME_CONFIG -I${KERNEL_ROOT_DIR}/include/salome -include SALOMEconfig.h) - ''') + if self.module not in ["yacs"]: + newlines.append(r''' + SET(AM_CPPFLAGS ${AM_CPPFLAGS} -DHAVE_SALOME_CONFIG -I${KERNEL_ROOT_DIR}/include/salome -include SALOMEconfig.h) + SET(AM_CXXFLAGS ${AM_CXXFLAGS} -DHAVE_SALOME_CONFIG -I${KERNEL_ROOT_DIR}/include/salome -include SALOMEconfig.h) + ''') + pass pass # -- return @@ -1236,6 +1238,14 @@ class CMakeFile(object): ENDIF(WINDOWS) ''') # -- + if self.module == "yacs": + newlines.append(r''' + IF(WINDOWS) + SET(var ${var} -DNOGDI) + ENDIF(WINDOWS) + ''') + pass + # -- newlines.append(r''' IF(WINDOWS) SET(targets) @@ -1264,6 +1274,7 @@ class CMakeFile(object): if self.module == "yacs": newlines.append(r''' SET(var ${var} -DYACS_PTHREAD) + SET(var ${var} -DCMAKE_BUILD) ''') pass newlines.append(r'''