From fdffa3ed7f211eee74934f02e3c808a11682d6fc Mon Sep 17 00:00:00 2001 From: adam Date: Mon, 19 Apr 2010 15:09:49 +0000 Subject: [PATCH] *** empty log message *** --- salome_adm/cmake_files/FindBOOST.cmake | 4 ++-- salome_adm/cmake_files/FindPLATFORM.cmake | 2 +- salome_adm/cmake_files/am2cmake.py | 27 +++++++++++++++++++++-- 3 files changed, 28 insertions(+), 5 deletions(-) diff --git a/salome_adm/cmake_files/FindBOOST.cmake b/salome_adm/cmake_files/FindBOOST.cmake index eb064ce9c..af4dbc22f 100644 --- a/salome_adm/cmake_files/FindBOOST.cmake +++ b/salome_adm/cmake_files/FindBOOST.cmake @@ -112,9 +112,9 @@ IF(BOOST_STATUS) SET(EXTENSION) ENDIF(CMAKE_BUILD_TYPE STREQUAL Debug) SET(LIB_NAMES) - FOREACH(version 1_35 1_38) + FOREACH(version 1_35 1_38 1_42) SET(LIB_NAMES ${LIB_NAMES} libboost_${name}-vc90-mt${EXTENSION}-${version}) - ENDFOREACH(version 1_35 1_38) + ENDFOREACH(version 1_35 1_38 1_42) FIND_LIBRARY(BOOST_LIB_${name} NAMES ${LIB_NAMES} PATHS ${BOOST_LIB_PATHS} ${BOOST_FIND_PATHS_OPTION}) ELSE(WINDOWS) FIND_LIBRARY(BOOST_LIB_${name} boost_${name} PATHS ${BOOST_LIB_PATHS} ${BOOST_FIND_PATHS_OPTION}) diff --git a/salome_adm/cmake_files/FindPLATFORM.cmake b/salome_adm/cmake_files/FindPLATFORM.cmake index a4aba6a5f..7f39eede8 100644 --- a/salome_adm/cmake_files/FindPLATFORM.cmake +++ b/salome_adm/cmake_files/FindPLATFORM.cmake @@ -59,7 +59,7 @@ SET(PLATFORM_CPPFLAGS) SET(PLATFORM_LDFLAGS) SET(PLATFORM_LIBADD) IF(WINDOWS) - # SET(PLATFORM_CPPFLAGS ${PLATFORM_CPPFLAGS} /W0) + SET(PLATFORM_CPPFLAGS ${PLATFORM_CPPFLAGS} /W0) SET(PLATFORM_CPPFLAGS ${PLATFORM_CPPFLAGS} -D_CRT_SECURE_NO_WARNINGS) # To disable windows warnings for strcpy, fopen, ... SET(PLATFORM_CPPFLAGS ${PLATFORM_CPPFLAGS} -D_SCL_SECURE_NO_WARNINGS) # To disable windows warnings std::copy, std::transform, ... SET(PLATFORM_CPPFLAGS ${PLATFORM_CPPFLAGS} -DWNT) diff --git a/salome_adm/cmake_files/am2cmake.py b/salome_adm/cmake_files/am2cmake.py index f599c515f..a2d3604d8 100644 --- a/salome_adm/cmake_files/am2cmake.py +++ b/salome_adm/cmake_files/am2cmake.py @@ -482,6 +482,9 @@ class CMakeFile(object): if self.module == "med": newlines.append(""" INCLUDE(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/FindMEDFILE.cmake) + IF(WINDOWS) + INCLUDE(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/FindXDR.cmake) + ENDIF(WINDOWS) """) pass if self.module == "smesh": @@ -1595,7 +1598,24 @@ class CMakeFile(object): def addBinTarget(self, key, newlines): # -- newlines.append(r''' - FOREACH(amname ${bin_PROGRAMS} ${check_PROGRAMS}) + FOREACH(amname ${%s}) + '''%(key)) + # -- + newlines.append(r''' + SET(test ON) + ''') + if key == "check_PROGRAMS": + newlines.append(r''' + IF(bin_PROGRAMS) + STRING(REGEX MATCH ${amname} is_present ${bin_PROGRAMS}) + IF(is_present) + SET(test OFF) + ENDIF(is_present) + ENDIF(bin_PROGRAMS) + ''') + pass + newlines.append(r''' + IF(test) ''') # -- newlines.append(r''' @@ -1646,8 +1666,11 @@ class CMakeFile(object): ''') # -- newlines.append(r''' - ENDFOREACH(amname ${bin_PROGRAMS} ${check_PROGRAMS}) + ENDIF(test) ''') + newlines.append(r''' + ENDFOREACH(amname ${%s}) + '''%(key)) # -- return -- 2.39.2