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

Reply via email to