[Vcproj2cmake-users] Build type/configurations
Visual Studio .vc[x]proj to CMakeLists.txt (make, Ninja ...) enabler
Status: Alpha
Brought to you by:
andim2
From: Kurien M. <kur...@gm...> - 2012-03-28 16:32:58
|
Hello, I have a vcproj with 4 configurations - Debug|Win32 - Debug|x64 - Release|Win32 - Release|x64 The CMakeLists.txt generated by vcproj2cmake.rb does not seem to differentiate between the 2 debug configurations Win32 and x64. eg it contains 2 blocks with if(CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE STREQUAL "Debug") > This results in two identical targets and the following error: CMake Error at CMakeLists.txt:233 (add_library): > add_library cannot create target "os" because another target with the > same > name already exists. The existing target is a shared library created in > source directory > "/home/kmathew/svn/os/build/cmake". > See documentation for policy CMP0002 for more details. > How can this be resolved? Thanks Kurien |