Permalink
Browse files

Add CMake 2 support (#4530)

Partially reverts d599955
  • Loading branch information...
tresf committed Aug 7, 2018
1 parent b5dc70c commit 2ecc8bb4fafd112cbe9205b5c78ba969646400c9
Showing with 4 additions and 0 deletions.
  1. +4 −0 cmake/modules/MinGWCrossCompile.cmake
@@ -51,6 +51,10 @@ ELSE()
SET(STRIP ${MINGW_TOOL_PREFIX}strip)
SET(WINDRES ${MINGW_TOOL_PREFIX}windres)
SET(ENV{PKG_CONFIG} ${MINGW_TOOL_PREFIX}pkg-config)
IF(CMAKE_VERSION LESS 3)
SET(PKG_CONFIG_EXECUTABLE $ENV{PKG_CONFIG})
SET(PKG_CONFIG_FOUND TRUE)
ENDIF()
# Search for programs in the build host directories
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)

0 comments on commit 2ecc8bb

Please sign in to comment.