ENDIF(BOOST_ROOT_USER)
ENDIF(BOOST_STATUS)
-
+IF(WINDOWS)
+ SET(BOOST_ENABLE_DLL 1)
+ELSE(WINDOWS)
+ SET(BOOST_ENABLE_DLL 0)
+ENDIF(WINDOWS)
+
IF(BOOST_STATUS)
SET(BOOST_LIBS)
FOREACH(name thread date_time signals filesystem system regex)
SET(EXTENSION)
ENDIF(CMAKE_BUILD_TYPE STREQUAL Debug)
SET(LIB_NAMES)
+ SET(STATIC_LIB_NAMES)
FOREACH(version 1_35 1_38 1_42 1_46_1)
SET(LIB_NAMES ${LIB_NAMES} boost_${name}-vc90-mt${EXTENSION}-${version})
+ SET(STATIC_LIB_NAMES ${LIB_NAMES} libboost_${name}-vc90-mt${EXTENSION}-${version})
ENDFOREACH(version 1_35 1_38 1_42 1_46_1)
FIND_LIBRARY(BOOST_LIB_${name} NAMES ${LIB_NAMES} PATHS ${BOOST_LIB_PATHS} ${BOOST_FIND_PATHS_OPTION})
+ IF(NOT BOOST_LIB_${name})
+ FIND_LIBRARY(BOOST_LIB_${name} NAMES ${STATIS_LIB_NAMES} PATHS ${BOOST_LIB_PATHS} ${BOOST_FIND_PATHS_OPTION})
+ SET(BOOST_ENABLE_DLL 0)
+ ENDIF(NOT BOOST_LIB_${name})
ELSE(WINDOWS)
FIND_LIBRARY(BOOST_LIB_${name} boost_${name} PATHS ${BOOST_LIB_PATHS} ${BOOST_FIND_PATHS_OPTION})
ENDIF(WINDOWS)
IF(BOOST_STATUS)
IF(WINDOWS)
SET(BOOST_CPPFLAGS ${BOOST_CPPFLAGS} -DBOOST_DISABLE_ASSERTS)
+ IF(BOOST_ENABLE_DLL)
+ SET(BOOST_CPPFLAGS ${BOOST_CPPFLAGS} -DBOOST_ALL_DYN_LINK)
+ ENDIF(BOOST_ENABLE_DLL)
ENDIF(WINDOWS)
ELSE(BOOST_STATUS)
IF(BOOST_IS_MANDATORY)
SET(AM_CXXFLAGS ${AM_CXXFLAGS} -DWITH_SMESH_CANCEL_COMPUTE)
''')
pass
+ if self.module == "ghs3dplugin":
+ newlines.append(r'''
+ IF(WINDOWS)
+ SET(AM_CPPFLAGS ${AM_CPPFLAGS} -DGHS3D_VERSION=42)
+ SET(AM_CXXFLAGS ${AM_CXXFLAGS} -DGHS3D_VERSION=42)
+ ENDIF(WINDOWS)
+ ''')
+ pass
if self.module == "hxx2salome":
key = "_SRC"
if self.the_root[-len(key):] != key:
SET(targets ${targets} MEDEngine)
SET(targets ${targets} SMESHEngine)
SET(targets ${targets} SMESH)
+ SET(targets ${targets} StdMeshersEngine)
+ SET(targets ${targets} VISUEngineImpl)
FOREACH(target ${targets})
IF(name STREQUAL ${target})
SET(var ${var} -DNOGDI)