Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add CMake 2 support (#4530)
Partially reverts d599955
  • Loading branch information
tresf committed Aug 7, 2018
1 parent b5dc70c commit 2ecc8bb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/modules/MinGWCrossCompile.cmake
Expand Up @@ -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)
Expand Down

0 comments on commit 2ecc8bb

Please sign in to comment.