On 11/03/13 09:24, Eric Noulard wrote: > I think Chandan meant "globally" for all executables. > > That's the purpose of CMAKE_EXECUTABLE_SUFFIX > as already pointed out by Michael. > > see : cmake --help-variable "CMAKE_EXECUTABLE_SUFFIX" > > Now it doesn't seems to work for Chandan. > > I guess the variable is forcibly written by "CMakeGenericSystem.cmake" > during early CMake startup. > So that you cannot overwrite its value on the command line. > try to add "variable_watch(CMAKE_EXECUTABLE_SUFFIX)" at the very top > of main CMakeLists.txt > > You may try to do that from within the CMakeLists.txt after the > "project(...)" statement (or enable_language)
Hi, Yes I tried to set the same variable on my machine but does not work here neither (Linux). Perhaps this only works for platforms where this variable is traditionally non-empty? As also Michael pointed out, this would not really be a solution for non-developers of a software for sure (and I now see Chandan said it was a question regarding usage). Cheers, Yngve -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
