Am 19.09.2012 um 16:08 schrieb Michael Jackson: > 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.
This does not work. I run this commands under VS 2010 cmake -DHDF5_USE_FOLDERS=OFF -DHDF5_BUILD_CPP_LIB=ON -DHDF5_BUILD_HL_LIB=ON -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=.... msbuild /p:Configuration=Release ALL_BUILDvcxproj msbuild INSTALL.vcxproj the first msbuild creates the error, that the release can not be created because it exsists (it exists a directory with the same name). If I run the ALL_BUILD from UI, it runs without error, but on running the INSTALL target no HDF libs will be created, the lib directory within the target directory is empty and within the bin directory only the mscvp100.dll and msvcr100.dll are stored. I have also build the hdf5, hdf5_cpp, hdf5_hl, hdf5_hl_cpp project, nothing is changed. I would like to create under VS dynamic libs (with & without debug symbols) like the linux command: configure --enabled-cxx --prefix= make make install How can I do this? IMHO I need cmake to create the VS project data and at next how I must run the VS projects for the correct build sequence? Thanks Phil > ___________________________________________________________ > 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 _______________________________________________ Hdf-forum is for HDF software users discussion. [email protected] http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
