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
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
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
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
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
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
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
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
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)