On 11/20/2014 10:18 AM, Óscar Fuentes wrote: > Wayne Stambaugh <[email protected]> > writes: > >> I have the same issue building KiCad. CMake does not appear to know how >> to properly define the default search path for MinGW. It probably sees >> MSYS defined and sets the default search path to /usr which is not what >> you want unless you are actually building an msys application. You can >> find out what this path actually is by printing the CMAKE_PREFIX_PATH >> variable. You can override this by calling cmake with >> -DCMAKE_PREFIX_PATH=/mingw64. You shouldn't have to rename >> /usr/bin/pkg-config.exe. > > CMAKE_PREFIX_PATH > Path used for searching by FIND_XXX(), with appropriate suffixes > added. > > [...] By default it is empty, it is intended > to be set by the project. See also CMAKE_SYSTEM_PREFIX_PATH, > CMAKE_INCLUDE_PATH, CMAKE_LIBRARY_PATH, CMAKE_PROGRAM_PATH. > > > Are you saying that CMAKE_PREFIX_PATH is not empty by default on your > CMake scripts?
I just checked my cmake configuration and here are the values of CMAKE_SYSTEM_PREFIX_PATH and CMAKE_PREFIX_PATH when CMAKE_PREFIX_PATH is not defined: -- CMAKE_SYSTEM_PREFIX_PATH="C:\Program Files;C:\Program Files;C:/msys64/mingw64;C:/msys64/mingw64" ; CMAKE_PREFIX_PATH="" You are correct, CMAKE_PREFIX_PATH is empty. I've working been under the assumption that the search paths were not correct because I always had to define both CMAKE_PREFIX_PATH=/mingw64 and OPENSSL_ROOT_DIR=/mingw64 to get FindOpenSSL to work properly. It looks like FindOpenSSL is the problem. I'm not sure having "C:\Program Files" is in the system search path for MinGW is a good idea. At very least I would think that "c:/msys64/mingw64" would be first in the search list. It also appears the cmake is appending the system paths twice somewhere during the configuration. > > > ------------------------------------------------------------------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & more > Get technology previously reserved for billion-dollar corporations, FREE > http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk > _______________________________________________ > Msys2-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/msys2-users > ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk _______________________________________________ Msys2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/msys2-users
