![]() ![]() 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. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |