Re: [CMake] Can't generate Release build in Visual Studio 9
Hello everybody! Sorry for the late in reply. I had a 'miss configured' filter dropping all my mails. Thanks for all replies sent. All of them have great hints on how to solve this problem. But, after the Thielemans reply, i decided that the build type must be selected from inside the Visual Studio, giving the liberty to decide the proper way in face the problem. Thanks again for all the replies! On Fri, Feb 24, 2012 at 4:39 PM, John Drescher dresche...@gmail.com wrote: 2. Do batch building. I do this option. Look at the cmake --build command Here is an example of this for one of my current projects (not exactly what I do but close enough): rem configure pushd . cd X:\64Bit\VC.100\Qt\StudyManager cmake X:/CMakeBased/Qt/StudyManager popd rem build the nsis package. cmake --build X:/64Bit/VC.100/Qt/StudyManager --config Release --target PACKAGE X:/64Bit/VC.100/Qt/StudyManager is the build folder containing the .sln CMakeCache.txt ... John -- Best regards, Maurício Souza Klein. -- 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
[CMake] Can't generate Release build in Visual Studio 9
Hello fellows! I'm using CMake to compile and CPack to pack my codes. The Linux version is working very well. But now i'm porting the CMakeLists.txt to Windows and i'm having some problems: My main problem is: how can i set the build type in Visual Studio to Release instead Debug? I've already tried set CMAKE_BUILD_TYPE: set(CMAKE_BUILD_TYPE Release) ... and CMAKE_CONFIGURATION_TYPES: set(CMAKE_CONFIGURATION_TYPES Release) But every time i open the SLN file generated by Cmake and run Build from inside the Visual Studio, the binary is always generated in Debug mode. Is there a way to set VS configuration to generate Release build using CMake variables? PS: I'm running cmake from dos (command line) and, after, i open the sln file with Visual Studio. Hope this is the right way to do that. Thanks in advance for your attention? -- Best regards, Maurício Souza Klein. -- 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
Re: [CMake] Can't generate Release build in Visual Studio 9
Hi Mauricio The SLN solution contains all possible build-types. The user just have to select which one they want (i.e. in Visual Studio, not cmake) Kris -Original Message- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Mauricio Klein Sent: 24 February 2012 17:40 To: cmake@cmake.org Subject: [CMake] Can't generate Release build in Visual Studio 9 Hello fellows! I'm using CMake to compile and CPack to pack my codes. The Linux version is working very well. But now i'm porting the CMakeLists.txt to Windows and i'm having some problems: My main problem is: how can i set the build type in Visual Studio to Release instead Debug? I've already tried set CMAKE_BUILD_TYPE: set(CMAKE_BUILD_TYPE Release) ... and CMAKE_CONFIGURATION_TYPES: set(CMAKE_CONFIGURATION_TYPES Release) But every time i open the SLN file generated by Cmake and run Build from inside the Visual Studio, the binary is always generated in Debug mode. Is there a way to set VS configuration to generate Release build using CMake variables? PS: I'm running cmake from dos (command line) and, after, i open the sln file with Visual Studio. Hope this is the right way to do that. Thanks in advance for your attention? -- Best regards, Maurício Souza Klein. -- 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
Re: [CMake] Can't generate Release build in Visual Studio 9
2. Do batch building. I do this option. Look at the cmake --build command Here is an example of this for one of my current projects (not exactly what I do but close enough): rem configure pushd . cd X:\64Bit\VC.100\Qt\StudyManager cmake X:/CMakeBased/Qt/StudyManager popd rem build the nsis package. cmake --build X:/64Bit/VC.100/Qt/StudyManager --config Release --target PACKAGE X:/64Bit/VC.100/Qt/StudyManager is the build folder containing the .sln CMakeCache.txt ... John -- 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