When you use CMake with a Visual Studio Generator CMake will basically ignore the CMAKE_CONFIGURATION_TYPES variable. Just generate the Visual Studio Solution as normal cmake. Then from the Visual Studio Command prompt add the following to the "msbuild" command:
msbuild /p:Configuration=Release [other arguments] [HDFProject.sln] That is what i use. ___________________________________________________________ Mike Jackson Principal Software Engineer BlueQuartz Software Dayton, Ohio [email protected] www.bluequartz.net On Sep 18, 2012, at 5:53 PM, Kraus Philipp wrote: > Hello, > > I try to build the HDF libs with Visual Studio, but I would like to create > only the "release" libs. I have set the CMAKE_CONFIGURATION_TYPES to release > but I can call msbuild ALL_BUILD.vcxproj. If I call the msbuild command > I gett the error, that the "Release" directory exists and so no libs are be > build. Also I tested the /property:Configuration=Release flag after the > msbuild command, the error that is created is always the same. > If I run the msbuild command without any modification for the build types, > everything is fine, but the lib are always libs with debug symbols. > > How can I create "only" the release libraries and how can build the debug > library only ? > > Thanks > > Phil > > > > _______________________________________________ > Hdf-forum is for HDF software users discussion. > [email protected] > http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org _______________________________________________ Hdf-forum is for HDF software users discussion. [email protected] http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
