ENDIF (NOT EXISTS ${CMAKE_INSTALL_PREFIX}/${_DEST})
ENDMACRO (COPY_IF_NOT_EXISTS _SRC _DEST)
COPY_IF_NOT_EXISTS ("sample_features" "etc/features")
The problem is ${CMAKE_CURRENT_SOURCE_DIR} is set to the out-of-source
build directory.
Is this why you said to use a parame
install
$ grep "X" etc/features
$ echo $?
1
Here is the Makefile login I'm attempting to mimic:
if [ ! -f $(DESTDIR)$(SYSCONFDIR)/features ]; then \
$(INSTALLDATA) ${srcdir}/sample_features
$(DESTDIR)$(SYSCONFDIR)/features ; \
fi
)
ENDMACRO (COPY_IF_DOES_NOT_EXIST SOURCE DESTINATION)
Works the first time, but if I delete the destination file a make
install won't install it again.
Any help?
--
Bob Tanner | Phone : (952 943-8700
http://www.real-time.com, Linux, OSX, VMware | Fax : (952)943-8500
Ke
On 2009-06-06 08:07:01 -0500, Bill Hoffman
said:
Bob Tanner wrote:
On 2009-06-05 17:37:11 -0500, Bob Tanner
said:
First question, how to I add "-c" to ranlib evocation?
Sorry for the follow-up to my post, but here is the work-around I used.
IF (UNIX)
MESSAGE (STATUS "U
On 2009-06-06 07:43:21 -0500, Bill Hoffman
said:
You should use the full path to the files like this:
set(puck_SOURCES ${CMAKE_CURRENT_BINARY_DIR}/commands_puck.c)
Thank you!
This method works for both 2.4 and 2.6.
--
Bob Tanner | Phone : (952 943-8700
http://www.real
e mounting that
set(COMMANDS_TYPE PUCK)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/commands.c.in
${CMAKE_CURRENT_BINARY_DIR}/commands_puck.c)
Doesn't work in cmake-2.4
--
Bob Tanner | Phone : (952 943-8700
http://www.real-time.com, Linux, OSX, VMware | Fax
cmake-2.6 to test there as well.
(sorry if this is a dup, sent this over 1 hour ago, but still has not
shown up in the archives)
--
Bob Tanner | Phone : (952 943-8700
http://www.real-time.com, Linux, OSX, VMware | Fax : (952)943-8500
Key fingerprint = F785 DDFC
${CMAKE_CURRENT_BINARY_DIR}/commands_puck.c)
Is this a 2.6 feature?
Works fine on osx+cmake version 2.6-patch 4 BUT fails on
ubuntu+hardy+cmake version 2.4-patch 7
--
Bob Tanner | Phone : (952 943-8700
http://www.real-time.com, Linux, OSX, VMware | Fax : (952)943-8500
Key
On 2009-06-05 17:37:11 -0500, Bob Tanner
said:
First question, how to I add "-c" to ranlib evocation?
Sorry for the follow-up to my post, but here is the work-around I used.
IF (UNIX)
MESSAGE (STATUS "Unix")
IF (APPLE)
SET(CMAKE_C_C
niversal files. "
To ultimately, the ADD_LIBRARY should be changed to libtool. Just
passing that information along.
Thanks.
--
Bob Tanner | Phone : (952 943-8700
http://www.real-time.com, Linux, OSX, VMware | Fax : (952)943-8500
Key fingerprint = F785 DDFC CF94 7CE8
file (-o commands_mars,
-o commands_puck).
How would I do this in cmake?
I looked at the ADD_CUSTOM_COMMAND but that doesn't seem the way to go.
Any advise?
Thanks.
--
Bob Tanner | Phone : (952 943-8700
http://www.real-time.com, Linux, OSX, VMware | Fax : (952)94
to change the -I flag to make it look int
he build/src directory?
--
Bob Tanner | Phone : (952 943-8700
http://www.real-time.com, Linux, OSX, VMware | Fax : (952)943-8500
Key fingerprint = F785 DDFC CF94 7CE8 AA87 3A9D 3895 26F1
omatically generated when cmake is run?
Any documentation on what files (minimaly) need to be added to revision
control so projects can build?
Thanks.
--
Bob Tanner | Phone : (952 943-8700
http://www.real-time.com, Linux, OSX, VMware | Fax : (952)943-8500
Key fingerprint = F785
13 matches
Mail list logo