Skip to content

Commit

Permalink
Fixed MinGW pkg-config configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Javier Serrano Polo committed May 29, 2016
1 parent ce05113 commit 9281811
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis/linux.win32.script.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash

export CMAKE_OPTS="-DUSE_WERROR=ON"
../cmake/build_mingw32.sh || ../cmake/build_mingw32.sh
../cmake/build_mingw32.sh
2 changes: 1 addition & 1 deletion .travis/linux.win64.script.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash

export CMAKE_OPTS="-DUSE_WERROR=ON"
../cmake/build_mingw64.sh || ../cmake/build_mingw64.sh
../cmake/build_mingw64.sh
5 changes: 2 additions & 3 deletions cmake/modules/MinGWCrossCompile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ ELSE()
# Mingw tools
SET(STRIP ${MINGW_TOOL_PREFIX}strip)
SET(WINDRES ${MINGW_TOOL_PREFIX}windres)
SET(PKG_CONFIG_EXECUTABLE ${MINGW_TOOL_PREFIX}pkg-config)
SET(PKG_CONFIG_FOUND TRUE)
SET(ENV{PKG_CONFIG} ${MINGW_TOOL_PREFIX}pkg-config)

# Search for programs in the build host directories
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
Expand Down Expand Up @@ -85,7 +84,7 @@ IF(NOT DEFINED ENV{MINGW_DEBUG_INFO})
MESSAGE("* CMAKE_CXX_COMPILER : ${CMAKE_CXX_COMPILER}")
MESSAGE("* CMAKE_RC_COMPILER : ${CMAKE_RC_COMPILER}")
MESSAGE("* WINDRES : ${WINDRES}")
MESSAGE("* PKG_CONFIG_EXECUTABLE : ${PKG_CONFIG_EXECUTABLE}")
MESSAGE("* ENV{PKG_CONFIG} : $ENV{PKG_CONFIG}")
MESSAGE("* MINGW_TOOL_PREFIX32 : ${MINGW_TOOL_PREFIX32}")
MESSAGE("* CMAKE_C_COMPILER32 : ${CMAKE_C_COMPILER32}")
MESSAGE("* CMAKE_CXX_COMPILER32 : ${CMAKE_CXX_COMPILER32}")
Expand Down

0 comments on commit 9281811

Please sign in to comment.