[CMake] escaping spaces in paths with cmake -E commands?

2006-05-06 Thread Zachary Pincus
Hi folks, I'm using CMake 2.2-3, and have recently run into some problems with a stanza of CMake code that looks like this: SET(src ${IN_DIR}/foo.bar) SET(tgt ${OUT_DIR}/foo.bar) EXEC_PROGRAM(${CMAKE_COMMAND} ARGS -E copy_if_different ${src} ${tgt}) The problem comes when src or tgt have

[CMake] new rpath support

2006-02-26 Thread Zachary Pincus
Hi folks, A quick question about the support for adding custom rpaths (and on darwin, install_names) to shared libraries that Brad is adding to CMake: Is there a windows equivalent to rpaths at all? Will dlls created with these options also be loadable at that rpath? Or is it the case

Re: [CMake] Installed project with shared libs

2006-02-23 Thread Zachary Pincus
Thanks everyone for your suggestions about how to deal with rpaths (aka install names for OS X dylibs) and installed shared libraries. Option A is to disable the rpaths and make sure that (1) the libraries are installed in a standard location, or (2) [DY] LD_LIBRARY_PATH is set to the

[CMake] Find out current CXX_FLAGS at build time?

2006-02-15 Thread Zachary Pincus
Hello, I'd like to be able to determine what the current CXX_FLAGS are *at build time*. Specifically, the CXX_FLAGS used will change depending on what configuration type is selected in an IDE. Is there a variable that will expand at build time to the proper flags? This is so I can

Re: [CMake] Find out current CXX_FLAGS at build time?

2006-02-15 Thread Zachary Pincus
CMAKE_C_FLAGS_DEBUG will be used in the Debug configuration of the IDE. So here's the issue: I want to add a custom command that (at build time) gets fed the same flags as the compiler. Say I do the following (modulo errors): ADD_CUSTOM_COMMAND( SOURCE ${input_cxx} COMMAND

[CMake] turn CMAKE_SKIP_RPATHS on for one library or one subdirectory

2006-02-15 Thread Zachary Pincus
Hi folks, I'm having trouble figuring out how to turn CMAKE_SKIP_RPATH on for a single subdirectory (or for that matter, just one library). I've tried all possible permutations of SET(CMAKE_SKIP_RPATH ON [CACHE BOOL [FORCE]]) at the top of the CMakeLists.txt file in my subdirectory, but

[CMake] get current INCLUDE_DIRECTORIES list?

2006-02-02 Thread Zachary Pincus
Hi folks, Is it possible to get a list of the currently-defined include directories (implicitly included paths, and those explicitly added with INCLUDE_DIRECTORIES) within cmake at configure time? Or failing that, get a variable that expands to whatever make/XCode/VC++ variable stores

[CMake] Install files at absolute position?

2006-01-17 Thread Zachary Pincus
Hello again, I'm wondering if there is any good way to have CMake install a particular file at an absolute position in the filesystem (not prefixed by CMAKE_INSTALL_PREFIX) during 'make install'. It's clearly possible to send a file to any given location during the configure or build

Re: [CMake] STRING(CONFIGURE ...) problem with too-early variable substitution

2006-01-14 Thread Zachary Pincus
Is there any good way to get the literal '@...@' or '$ {...}' (excluding the quotes) into a CMake variable? You have to escape the @ symbols with a backslash: SET(to_configure /path/to/[EMAIL PROTECTED]@) In my hands (using a CMake CVS build from a week ago), these lines: SET(bar baz)