Blame cmake/modules/toolchain_win32.cmake

Packit Service 48484a
#me of the target operating system
Packit Service 48484a
SET(CMAKE_SYSTEM_NAME Windows)
Packit Service 48484a
Packit Service 48484a
# which compilers to use for C and C++
Packit Service 48484a
SET(CMAKE_C_COMPILER i686-w64-mingw32-gcc)
Packit Service 48484a
SET(CMAKE_CXX_COMPILER i686-w64-mingw32-g++)
Packit Service 48484a
SET(CMAKE_RC_COMPILER i686-w64-mingw32-windres)
Packit Service 48484a
Packit Service 48484a
# here is the target environment located
Packit Service 48484a
SET(CMAKE_FIND_ROOT_PATH    /usr/i686-w64-mingw32/)
Packit Service 48484a
SET(LENSFUN_INSTALL_PREFIX  /usr/i686-w64-mingw32/)
Packit Service 48484a
Packit Service 48484a
# adjust the default behaviour of the FIND_XXX() commands:
Packit Service 48484a
# search headers and libraries in the target environment, search 
Packit Service 48484a
# programs in the host environment
Packit Service 48484a
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
Packit Service 48484a
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
Packit Service 48484a
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)