On 06/15/2015 03:42 PM, Ette, Anthony (CDS) wrote: > you mention that it is my responsibility to setup the environment > before invoking Cmake and while I agree, it's just not clear to me > what speficially Cmake requires to be setup.
The environment is not for CMake but for the compiler itself. I was just saying that CMake is not going to know what environment variables the toolchain needs to have set in order for the compiler to work. If you invoke CMake from the same environment as that by-hand test that worked earlier then that is the required environment. You can run CMake on that minimal project with --debug-trycompile to leave behind the test project directory. That may help dig into how the test project is invoking the compiler. -Brad -- 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