[brlcad-commits] SF.net SVN: brlcad:[49132] brlcad/trunk/CMakeLists.txt
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: <sta...@us...> - 2012-01-27 20:43:23
|
Revision: 49132 http://brlcad.svn.sourceforge.net/brlcad/?rev=49132&view=rev Author: starseeker Date: 2012-01-27 20:43:16 +0000 (Fri, 27 Jan 2012) Log Message: ----------- Looks like we need to set target properties for multiple configurations, in order to re-direct appropriately. Modified Paths: -------------- brlcad/trunk/CMakeLists.txt Modified: brlcad/trunk/CMakeLists.txt =================================================================== --- brlcad/trunk/CMakeLists.txt 2012-01-27 19:46:45 UTC (rev 49131) +++ brlcad/trunk/CMakeLists.txt 2012-01-27 20:43:16 UTC (rev 49132) @@ -325,7 +325,12 @@ endif(${name} MATCHES "^lib*") # Put ALL library outputs, runtime (i.e. DLL) or otherwise, in the LIB directory # Per discussion from http://www.cmake.org/pipermail/cmake/2011-July/045591.html - set_target_properties(${name} PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${LIB_DIR}") + # http://www.cmake.org/pipermail/cmake/2012-January/048867.html + set_target_properties(${name} PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${BRLCAD_BINARY_DIR}/${LIB_DIR}") + foreach(CFG_TYPE ${CMAKE_CONFIGURATION_TYPES}) + string(TOUPPER "${CFG_TYPE}" CFG_TYPE) + set_target_properties(${name} PROPERTIES RUNTIME_OUTPUT_DIRECTORY_${CFG_TYPE} "${BRLCAD_BINARY_DIR}/${LIB_DIR}") + endforeach(CFG_TYPE ${CMAKE_CONFIGURATION_TYPES}) set_property(GLOBAL APPEND PROPERTY CMAKE_LIBRARY_TARGET_LIST ${name}) endfunction(add_library) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |