

It is not claimed to be in any way comprehensive. Some or all of this may or may not work for all versions of Windows. This guide describes how to install JoinMarket and its dependencies (python, libsodium, secp256k1) on Windows. Forget about CMAKE_PREFIX_PATH, CMAKE_FRAMEWORK_PATH, CMAKE_APPBUNDLE_PATH. Solution: Use only PKG_CONFIG_PATH as an environment variable if you run CMake builds on Cygwin. Comment/remove the line: file(TO_NATIVE_PATH "$" _pkgconfig_path)Ĥ) CMAKE_PREFIX_PATH, CMAKE_FRAMEWORK_PATH, CMAKE_APPBUNDLE_PATH have no effect on pkg-config in Cygwin. Solution: manually update the function _pkg_set_path_internal() in the file C:/Program Files/CMake/share/cmake-3.x/Modules/FindPkgConfig.cmake. It prevents using the workaround described in. pc files location always as a Cygwin path into PKG_CONFIG_PATH.ģ) CMake converts forward slashes to backslashes in PKG_CONFIG_PATH on Cygwin. The following three paths are valid, but only path C works in PKG_CONFIG_PATH: pc files are located in C:\Cygwin64\usr\x86_64-w64-mingw32\sys-root\mingw\lib\pkgconfig. Cygwin's pkg-config recognizes only Cygwin paths in PKG_CONFIG_PATH (no Windows paths).įor example, on my system the. Solution: Add -DPKG_CONFIG_EXECUTABLE=C:/Cygwin64/bin/pkgconf.exe to the CMake command line (or set it in CMakeLists.txt).Ģ. " to your %PATHEXT% (see won't work from CMake, because CMake calls pkg-config with the method execute_process() (FindPkgConfig.cmake) which opens a new cmd.exe. lnk symlink and it won't be callable in Windows console cmd.exe even if you add ". The symlink C:/Cygwin64/bin/pkg-config -> pkgconf.exe does not work in Windows console. I have experienced many troubles with CMake + Cygwin's pkg-config and I want to share my experience how to avoid them.ġ. I would like to extend the answer of about the Cygwin version of pkg-config in that focus how should one use it properly with CMake, because I see various comments about CMake in this topic.
