[CMake] MODULE_LIBRARY targets not copied to RUNTIME_OUTPUT_DIRECTORY (on 2.6.0 RC9)
Philip Lowman
philip at yhbt.com
Tue Apr 29 23:40:58 EDT 2008
I noticed testing tonight with CMake 2.6.0 RC9 that MODULE_LIBRARY targets
(i.e. DLL plugins under Windows) are NOT copied to the
RUNTIME_OUTPUT_DIRECTORY. Is this a bug?
I thought the impetus for the CMAKE_RUNTIME_OUTPUT_DIRECTORY feature was to
get all DLLs dumped into a single directory so developers wouldn't have to
concoct custom POST BUILD rules or modify PATH environment variables prior
to runtime?
PROJECT(myfoo)
SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib
CACHE STRING "Where libraries go" FORCE)
SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib
CACHE STRING "Where archives go" FORCE)
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin
CACHE STRING "Where binaries and .dll files go" FORCE)
ADD_LIBRARY(foo MODULE foo.h foo.cc)
--
Philip Lowman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080429/b1c91f82/attachment.htm>
More information about the CMake
mailing list