IF(BOOST_STATUS)
IF(WINDOWS)
SET(BOOST_CPPFLAGS ${BOOST_CPPFLAGS} -DBOOST_DISABLE_ASSERTS)# to be removed
- SET(BOOST_FLAGS -DBOOST_DISABLE_ASSERTS)
+ SET(BOOST_DEFINITIONS -DBOOST_DISABLE_ASSERTS)
IF(BOOST_ENABLE_DLL)
SET(BOOST_CPPFLAGS ${BOOST_CPPFLAGS} -DBOOST_ALL_DYN_LINK)# to be removed
- SET(BOOST_FLAGS -DBOOST_ALL_DYN_LINK)
+ SET(BOOST_DEFINITIONS "${BOOST_DEFINITIONS} -DBOOST_ALL_DYN_LINK")
ENDIF(BOOST_ENABLE_DLL)
ENDIF(WINDOWS)
ELSE(BOOST_STATUS)
IF(CPPUNIT_STATUS)
SET(CPPUNIT_IS_OK 1)
- SET(CPPUNIT_FLAGS)
+ SET(CPPUNIT_DEFINITIONS)
IF(WINDOWS)
SET(CPPUNIT_INCLUDES ${CPPUNIT_INCLUDES} -DCPPUNIT_DLL)
- SET(CPPUNIT_FLAGS "-DCPPUNIT_DLL")
+ SET(CPPUNIT_DEFINITIONS "-DCPPUNIT_DLL")
ENDIF(WINDOWS)
ELSE(CPPUNIT_STATUS)
IF(CPPUNIT_IS_MANDATORY)
SET(HDF5_INCLUDE_DIRS ${HDF5_INCLUDE_DIR})
ENDIF(${HDF5_INCLUDE_DIR} STREQUAL /usr/include)
ENDIF(HDF5_ROOT_USER)
- SET(HDF5_FLAGS "-DH5_USE_16_API -D_HDF5USEDLL_")
+ SET(HDF5_DEFINITIONS "-DH5_USE_16_API -D_HDF5USEDLL_")
SET(HDF5_INCLUDES -DH5_USE_16_API -D_HDF5USEDLL_ ${HDF5_INCLUDES})# to be removed
MESSAGE(STATUS "${HDF5_INCLUDE_TO_FIND} found in ${HDF5_INCLUDE_DIR}")
ELSE(HDF5_INCLUDE_DIR)
MESSAGE(STATUS "hdf5 is parallel")
SET(HDF5_INCLUDES ${HDF5_INCLUDES} -I${MPI_INCLUDE_DIRS}) # to remove after "cmakeization"
SET(HDF5_INCLUDE_DIRS ${HDF5_INCLUDE_DIRS} ${MPI_INCLUDE_DIRS})
- SET(HDF5_FLAGS "${HDF5_FLAGS} ${MPI_FLAGS}")
+ SET(HDF5_DEFINITIONS "${HDF5_DEFINITIONS} ${MPI_DEFINITIONS}")
SET(HDF5_LIBS ${HDF5_LIBS} ${MPI_LIBS})
ENDIF(HDF5_HAVE_PARALLEL)
ENDIF(HDF5_STATUS)
IF(LIBXML2_STATUS)
SET(LIBXML_INCLUDES ${LIBXML2_INCLUDES})# to remove
SET(LIBXML_CPPFLAGS ${LIBXML2_INCLUDES})
- SET(LIBXML_FLAGS)
+ SET(LIBXML_DEFINITIONS)
SET(LIBXML_LIBS ${LIBXML2_LIBS})
ELSE(LIBXML2_STATUS)
IF(LIBXML2_IS_MANDATORY)
IF(MPI_LIB_mpi_cxx AND MPI_LIB_mpi)
SET(MPI_LIBS ${MPI_LIB_mpi_cxx} ${MPI_LIB_mpi})
SET(MPI_INCLUDES ${MPI_INCLUDES} -DOMPI_IGNORE_CXX_SEEK)# to remove
- SET(MPI_FLAGS -DOMPI_IGNORE_CXX_SEEK)
+ SET(MPI_DEFINITIONS -DOMPI_IGNORE_CXX_SEEK)
ELSEIF(MPI_LIB_mpi_cxx)
SET(MPI_LIBS ${MPI_LIB_mpi_cxx})
SET(MPI_INCLUDES ${MPI_INCLUDES} -DOMPI_IGNORE_CXX_SEEK)# to remove
- SET(MPI_FLAGS -DOMPI_IGNORE_CXX_SEEK)
+ SET(MPI_DEFINITIONS -DOMPI_IGNORE_CXX_SEEK)
ELSEIF(MPI_LIB_mpi)
SET(MPI_LIBS ${MPI_LIB_mpi})
SET(MPI_INCLUDES ${MPI_INCLUDES} -DOMPI_IGNORE_CXX_SEEK)# to remove
- SET(MPI_FLAGS -DOMPI_IGNORE_CXX_SEEK)
+ SET(MPI_DEFINITIONS -DOMPI_IGNORE_CXX_SEEK)
ELSEIF(MPI_LIB_mpich)
SET(MPI_LIBS ${MPI_LIB_mpich})
SET(MPI_INCLUDES ${MPI_INCLUDES} -DMPICH_IGNORE_CXX_SEEK)# to remove
- SET(MPI_FLAGS -DMPICH_IGNORE_CXX_SEEK)
+ SET(MPI_DEFINITIONS -DMPICH_IGNORE_CXX_SEEK)
ENDIF()
ELSE(MPI_LIB_FOUND)
MESSAGE(STATUS "MPI lib not found, check your MPI installation.")
IF(MPI2_IS_OK)
MESSAGE(STATUS "Your mpi implemtentation is compatible with mpi2 ... adding -DHAVE_MPI2")
SET(MPI_INCLUDES ${MPI_INCLUDES} -DHAVE_MPI2)# to remove
- SET(MPI_FLAGS "${MPI_FLAGS} -DHAVE_MPI2")
+ SET(MPI_DEFINITIONS "${MPI_DEFINITIONS} -DHAVE_MPI2")
ENDIF(MPI2_IS_OK)
ENDIF(MPI_STATUS)
SET(OMNIORB_CXXFLAGS ${OMNIORB_CXXFLAGS} -D__x86__) # to be removed
SET(OMNIORB_CXXFLAGS ${OMNIORB_CXXFLAGS} -DCOMP_CORBA_DOUBLE) # to be removed
SET(OMNIORB_CXXFLAGS ${OMNIORB_CXXFLAGS} -DCOMP_CORBA_LONG) # to be removed
- SET(OMNIORB_FLAGS "-D__x86__ -DCOMP_CORBA_DOUBLE -DCOMP_CORBA_LONG")
+ SET(OMNIORB_DEFINITIONS "-D__x86__ -DCOMP_CORBA_DOUBLE -DCOMP_CORBA_LONG")
IF(WINDOWS)
- SET(OMNIORB_CXXFLAGS ${OMNIORB_CXXFLAGS} -D__WIN32__)
+ SET(OMNIORB_CXXFLAGS ${OMNIORB_CXXFLAGS} -D__WIN32__) # to be removed
+ SET(OMNIORB_DEFINITIONS "${OMNIORB_DEFINITIONS} -D__WIN32__")
# # # # SET(OMNIORB_CXXFLAGS ${OMNIORB_CXXFLAGS} -D_WIN32_WINNT=0x0400)
# SET(OMNIORB_CXXFLAGS ${OMNIORB_CXXFLAGS} -D__NT__)
# SET(OMNIORB_CXXFLAGS ${OMNIORB_CXXFLAGS} -D__OSVERSION__=4)
SET(CORBA_GEN 1)
SET(OMNIORB_IDL ${OMNIIDL_EXECUTABLE})
SET(CORBA_INCLUDES ${OMNIORB_INCLUDES})
- SET(CORBA_CXXFLAGS ${OMNIORB_CXXFLAGS})
- SET(CORBA_FLAGS ${OMNIORB_CXXFLAGS})
+ SET(CORBA_CXXFLAGS ${OMNIORB_CXXFLAGS})# to be removed
+ SET(CORBA_DEFINITIONS ${OMNIORB_DEFINITIONS})
SET(CORBA_LIBS ${OMNIORB_LIBS})
SET(OMNIORB_IDLCXXFLAGS -Wba -nf)
SET(OMNIORB_IDLPYFLAGS -bpython)
ENDIF(PYTHON_ROOT_USER)
SET(PYTHON_INCLUDE_TO_FIND Python.h)
FIND_PATH(PYTHON_INCLUDE_DIR ${PYTHON_INCLUDE_TO_FIND} PATHS ${PYTHON_INCLUDE_PATHS} ${PYTHON_FIND_PATHS_OPTION})
- SET(PYTHON_FLAGS)
+ SET(PYTHON_DEFINITIONS)
IF(PYTHON_INCLUDE_DIR)
SET(PYTHON_INCLUDES -I${PYTHON_INCLUDE_DIR})# to remove
SET(PYTHON_INCLUDE_DIRS ${PYTHON_INCLUDE_DIR})
IF(CMAKE_BUILD_TYPE STREQUAL Release)
ELSE(CMAKE_BUILD_TYPE STREQUAL Release)
SET(PYTHON_INCLUDES ${PYTHON_INCLUDES} -DHAVE_DEBUG_PYTHON)# to remove
- SET(PYTHON_FLAGS "-DHAVE_DEBUG_PYTHON")
+ SET(PYTHON_DEFINITIONS "-DHAVE_DEBUG_PYTHON")
ENDIF(CMAKE_BUILD_TYPE STREQUAL Release)
ENDIF(WINDOWS)
MESSAGE(STATUS "${PYTHON_INCLUDE_TO_FIND} found in ${PYTHON_INCLUDE_DIR}")
IF(NUMPY_STATUS)
SET(PYTHON_INCLUDES ${PYTHON_INCLUDES} -DWITH_NUMPY -I${NUMPY_INCLUDE_DIR})# to remove
SET(PYTHON_INCLUDE_DIRS ${PYTHON_INCLUDE_DIRS} ${NUMPY_INCLUDE_DIR})
- SET(PYTHON_FLAGS "${PYTHON_FLAGS} -DWITH_NUMPY")
+ SET(PYTHON_DEFINITIONS "${PYTHON_DEFINITIONS} -DWITH_NUMPY")
MESSAGE(STATUS "numpy found : ${NUMPY_INCLUDE_DIR}")
ELSE(NUMPY_STATUS)
MESSAGE(STATUS "numpy not found")