On Wed, Oct 26, 2011 at 10:17 AM, Ludovic Hoyet <[email protected]> wrote: > Just to know, is there a way to set the platform in the CMakeList? At the > moment if I select VS_XXX if creates uses the Win32 platform, and the x64 is > used if I select VS_XXX x64. I would like to set a variable to the default > platform (no pb with that), and let the users modify if if they really want > (therefore create a Win32 platform from VS_XXX x64 if that's what they want, > from setting this variable)... > Thanks >
You do this by setting the generator. I would not hardwire that in a CMakeLists.txt file. Instead if you want create a batch file that calls cmake.exe with the appropriate generator.. -- 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
