[CMake] Retrieving a named argument from a list

2008-04-30 Thread George Neill
Hi All, Below is what I have come up with to fetch named arg from a list. Is there a preferred or built-in way to do this I may have missed? MACRO(GET_NAMED_ARG _key) LIST(APPEND STOP_KEYWORDS DEPENDS SOURCE) SET(${_key} FALSE) SET(_stop -1) FOREACH(arg ${ARGN}) IF(NOT

Re: [CMake] MODULE_LIBRARY targets not copied to RUNTIME_OUTPUT_DIRECTORY (on 2.6.0 RC9)

2008-04-30 Thread Philip Lowman
On Wed, Apr 30, 2008 at 1:00 PM, Brad King <[EMAIL PROTECTED]> wrote: > Philip Lowman wrote: > > > The vast majority of the time users are going to want their plugins > > dumped in RUNTIME_OUTPUT_DIRECTORY anyways so LoadLibrary() just works > > properly. I can understand the desire to redirect t

[CMake] prefer static to dynamic library on linux

2008-04-30 Thread John Doe
Hello, I just started using ubuntu linux and it is a pleasure to see that they provide both static and shared versions of libtcl8.4. Is there a way to tell cmake to prefer the static version of this library, even if they are in the same directory, /usr/lib. Thanks, Juan

Re: [CMake] Cmake/MacPackaging

2008-04-30 Thread David Cole
The error message comes from the CPack PackageMakerGenerator regarding these settings: SET(CPACK_RESOURCE_FILE_LICENSE "/Users/pashov_d/dev/aten/COPYING") SET(CPACK_RESOURCE_FILE_README "/usr/local/CMake 2.7-20080430.app/Contents/share/cmake-2.7/Templates/CPack.GenericDescri

Re: [CMake] MODULE_LIBRARY targets not copied to RUNTIME_OUTPUT_DIRECTORY (on 2.6.0 RC9)

2008-04-30 Thread Brad King
Philip Lowman wrote: The vast majority of the time users are going to want their plugins dumped in RUNTIME_OUTPUT_DIRECTORY anyways so LoadLibrary() just works properly. I can understand the desire to redirect these plugins to a separate location in your build tree (i.e.a plugins directory) al

[CMake] Cmake/MacPackaging

2008-04-30 Thread Alin M Elena
ET(CPACK_PACKAGE_INSTALL_DIRECTORY "aten0.97") SET(CPACK_PACKAGE_INSTALL_REGISTRY_KEY "aten 0.97.1") SET(CPACK_PACKAGE_NAME "aten") SET(CPACK_PACKAGE_RELOCATABLE "true") SET(CPACK_PACKAGE_VENDOR "Tristan Youngs") SET(CPACK_PAC

Re: [CMake] MODULE_LIBRARY targets not copied to RUNTIME_OUTPUT_DIRECTORY (on 2.6.0 RC9)

2008-04-30 Thread Philip Lowman
On Wed, Apr 30, 2008 at 9:27 AM, Brad King <[EMAIL PROTECTED]> wrote: > Philip Lowman wrote: > > > 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 t

Re: [CMake] How to link executable with libraries containing circulardependencies

2008-04-30 Thread Martin Apel
Newell, James C. wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Martin Apel Sent: Tuesday, April 22, 2008 9:06 AM To: cmake@cmake.org Subject: [CMake] How to link executable with libraries containing circulardependencies Hi there, I am trying to

Re: [CMake] MODULE_LIBRARY targets not copied to RUNTIME_OUTPUT_DIRECTORY (on 2.6.0 RC9)

2008-04-30 Thread Brad King
Philip Lowman wrote: 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