On 7/1/2014 3:38 AM, Jörg Kreuzberger wrote:
As newbee to cmake i only could not understand why this single /
multi configuration stuff is supported. it makes it more complicated,
but i assume it is like always: historical grown.

It is supported because that is the way native development happens in visual studio. If we did not have multi configuration support, the visual studio developers would not be happy. It is also supported on Apple Xcode.

BTW, you do not need to do this:
  if( WIN32 )
    if( MINGW)
      set_property( ...   ${CMAKE_CURRENT_BINARY_DIR}/x.dll)
    else()
set_property( ... ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/x.dll)
   else if( UNIX )

this will work on both platforms:

set_property( ... ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/x.dll)

CMAKE_CFG_INTDIR = "." on platforms without multi-config. So, it would expand to ${CMAKE_CURRENT_BINARY_DIR}/./${CMAKE_CFG_INTDIR}/x.dll
Which would be fine.

-Bill
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to