mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-21 01:04:10 +08:00
Correct mingw paths
This commit is contained in:
parent
d14b87bfc8
commit
ad8f45d267
@ -5,10 +5,11 @@ elseif(APPLE)
|
||||
set (CMAKE_OSX_ARCHITECTURES "i386")
|
||||
elseif(MINGW)
|
||||
set (CMAKE_SYSTEM_NAME Windows)
|
||||
set (CMAKE_C_COMPILER i686-w64-mingw32-gcc)
|
||||
set (CMAKE_CXX_COMPILER i686-w64-mingw32-g++)
|
||||
set (CMAKE_RC_COMPILER i686-w64-mingw32-windres)
|
||||
set (CMAKE_Fortran_COMPILER i686-w64-mingw32-gfortran)
|
||||
set (TOOLCHAIN_PREFIX i686-w64-mingw32)
|
||||
set (CMAKE_C_COMPILER ${TOOLCHAIN_PREFIX}-gcc)
|
||||
set (CMAKE_CXX_COMPILER ${TOOLCHAIN_PREFIX}-g++)
|
||||
set (CMAKE_RC_COMPILER ${TOOLCHAIN_PREFIX}-windres)
|
||||
set (CMAKE_Fortran_COMPILER ${TOOLCHAIN_PREFIX}-gfortran)
|
||||
|
||||
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32" CACHE STRING "c++ flags")
|
||||
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m32" CACHE STRING "c flags")
|
||||
@ -34,11 +35,14 @@ elseif(MINGW)
|
||||
set (ENV{PKG_CONFIG_LIBDIR} ${LIB32}/pkgconfig:/usr/share/pkgconfig:/usr/lib/pkgconfig:/usr/lib64/pkgconfig)
|
||||
endif ()
|
||||
|
||||
set (CMAKE_FIND_ROOT_PATH /usr/i686-w64-mingw32)
|
||||
set (CMAKE_FIND_ROOT_PATH /usr/${TOOLCHAIN_PREFIX})
|
||||
set (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||
set (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
||||
set (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
||||
set (CMAKE_CROSSCOMPILING_EMULATOR wine32)
|
||||
set (CMAKE_CROSSCOMPILING_EMULATOR wine)
|
||||
|
||||
include_directories(/usr/${TOOLCHAIN_PREFIX}/include)
|
||||
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS On CACHE BOOL "Export windows symbols")
|
||||
else ()
|
||||
set (CMAKE_SYSTEM_NAME Linux)
|
||||
|
||||
|
@ -4,7 +4,7 @@ set (CMAKE_C_COMPILER ${TOOLCHAIN_PREFIX}-gcc)
|
||||
set (CMAKE_CXX_COMPILER ${TOOLCHAIN_PREFIX}-g++)
|
||||
set (CMAKE_RC_COMPILER ${TOOLCHAIN_PREFIX}-windres)
|
||||
set (CMAKE_Fortran_COMPILER ${TOOLCHAIN_PREFIX}-gfortran)
|
||||
set (CMAKE_FIND_ROOT_PATH /usr/${TOOLCHAIN_PREFIX} /usr/${TOOLCHAIN_PREFIX})
|
||||
set (CMAKE_FIND_ROOT_PATH /usr/${TOOLCHAIN_PREFIX})
|
||||
set (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||
set (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
||||
set (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
||||
|
Loading…
Reference in New Issue
Block a user