Hello, I tried to generate MinGW makefiles using "specify toolchain file" using cmake gui 3.0 on windows. Cmake complained that cannot find make program (CMAKE_MAKE_PROGRAM not set). In such case cmake didn't process toolchain file. When I added directory where mingw32-make.exe is located to the Path env. variable, then it run ok. So it is not possible to locate make program through toolchain file (through CMAKE_FIND_ROOT_PATH) ? And content of toolchain file is not read on the begin of process, but from some point ? Sorry for maybe stupid questions, but just now I cannot find how it is intended to work. Based on documentation for CMAKE_FIND_ROOT_PATH, it should be used to prepend those directories when find_program is executed ... and find_program is executed inside CMakeMinGWFindMake.cmake. But probably CMakeMinGWFindMake.cmake is executed earlier then toolchain file is processed. Can someone shed some light on it please ?
regards tomas
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake
