Test CMAKE_GNUtoMS option in ExportImport on MinGW and MSys

This commit is contained in:
Brad King 2011-12-05 16:49:10 -05:00
parent afb00fef19
commit ae62a1cd35
2 changed files with 6 additions and 0 deletions

View File

@ -22,6 +22,11 @@ else(CMAKE_CONFIGURATION_TYPES)
endif(CMAKE_BUILD_TYPE) endif(CMAKE_BUILD_TYPE)
endif(CMAKE_CONFIGURATION_TYPES) endif(CMAKE_CONFIGURATION_TYPES)
if(MINGW OR MSYS)
# Test CMAKE_GNUtoMS whether we have VS or not.
set(ExportImport_GNUtoMS 1)
endif()
configure_file(${ExportImport_SOURCE_DIR}/InitialCache.cmake.in configure_file(${ExportImport_SOURCE_DIR}/InitialCache.cmake.in
${ExportImport_BINARY_DIR}/InitialCache.cmake @ONLY) ${ExportImport_BINARY_DIR}/InitialCache.cmake @ONLY)

View File

@ -12,3 +12,4 @@ SET(CMAKE_CXX_FLAGS_MINSIZEREL "@CMAKE_CXX_FLAGS_MINSIZEREL@" CACHE STRING "C++
SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "@CMAKE_CXX_FLAGS_RELWITHDEBINFO@" CACHE STRING "C++ Flags") SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "@CMAKE_CXX_FLAGS_RELWITHDEBINFO@" CACHE STRING "C++ Flags")
SET(CMAKE_INSTALL_PREFIX "@ExportImport_BINARY_DIR@/Root" CACHE STRING "Installation Prefix") SET(CMAKE_INSTALL_PREFIX "@ExportImport_BINARY_DIR@/Root" CACHE STRING "Installation Prefix")
SET(CMAKE_SKIP_RPATH ON CACHE BOOL "No RPATH") SET(CMAKE_SKIP_RPATH ON CACHE BOOL "No RPATH")
SET(CMAKE_GNUtoMS "@ExportImport_GNUtoMS@" CACHE BOOL "CMAKE_GNUtoMS")