1
1

Correctly set the compile flags of 'mpicc' for static version.

This commit was SVN r21055.
Этот коммит содержится в:
Shiqing Fan 2009-04-22 13:17:25 +00:00
родитель d7a8b3038f
Коммит 0037f55424

Просмотреть файл

@ -27,7 +27,11 @@ IF(BUILD_SHARED_LIBS)
SET(OMPI_WRAPPER_EXTRA_CFLAGS
"/TC /D \"OMPI_IMPORTS\" /D \"OPAL_IMPORTS\" /D \"ORTE_IMPORTS\"")
ELSE(BUILD_SHARED_LIBS)
SET(OMPI_WRAPPER_EXTRA_CFLAGS "/TC")
IF(CMAKE_BUILD_TYPE STREQUAL "Debug")
SET(OMPI_WRAPPER_EXTRA_CFLAGS "/TC /MDd")
ELSE(CMAKE_BUILD_TYPE STREQUAL "Debug")
SET(OMPI_WRAPPER_EXTRA_CFLAGS "/TC /MD")
ENDIF(CMAKE_BUILD_TYPE STREQUAL "Debug")
ENDIF(BUILD_SHARED_LIBS)
CONFIGURE_FILE(${OpenMPI_SOURCE_DIR}/contrib/platform/win32/ConfigFiles/mpicc-wrapper-data.txt.cmake
@ -95,4 +99,3 @@ IF(OMPI_WANT_F90_BINDINGS)
INSTALL(FILES ${OMPI_BINARY_DIR}/tools/wrappers/mpif90.exe-wrapper-data.txt
DESTINATION share/openmpi)
ENDIF(OMPI_WANT_F90_BINDINGS)