Re: [CMake] Suppressing -rdynamic

2007-10-06 Thread Filip Brcic
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Дана субота 06 октобар 2007, Gonzalo Garramuño је написао(ла): > Filip Brcic wrote: > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > > Дана субота 06 октобар 2007, Gonzalo Garramuño је написао(ла): > >&

Re: [CMake] Suppressing -rdynamic

2007-10-06 Thread Filip Brcic
irectory `/Users/brcha/tmp/helloWorld/build' /usr/bin/cmake -E cmake_progress_report /Users/brcha/tmp/helloWorld/build/CMakeFiles 1 [100%] Built target helloWorld make[1]: Leaving directory `/Users/brcha/tmp/helloWorld/build' /usr/bin/cmake -E cmake_progress_start /Users/brcha/tmp/hello

Re: [CMake] Suppressing -rdynamic

2007-10-06 Thread Filip Brcic
quot;) Platform/Linux.cmake:SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "-rdynamic") Therefore, you have to override CMAKE_SHARED_LIBRARY_LINK_C_FLAGS and set it to blank. Something like: SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "") or something like that. And do consider making y

Re: [CMake] multiple CMakeLists.txt files in the same directory

2007-08-14 Thread Filip Brcic
gt; > > > cmake/foo/CMakeLists.txt > > > > /apple/CMakeLists.txt > > > > Every CMakeLists.txt file should have it's target. If you wish to make > > libraries out of every directory and then link them with main() in the > > top directory then use sepa

Re: [CMake] multiple CMakeLists.txt files in the same directory

2007-08-14 Thread Filip Brcic
OURCES windows/windows.cxx) if(APPLE) set(final_SOURCES ${foo_SOURCES} ${apple_SOURCES}) elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux") set(final_SOURCES ${foo_SOURCES} ${linux_SOURCES}) elseif(WIN32) set(final_SOURCES ${foo_SOURCES} ${windows_SOUR

Re: [CMake] compiling implementation first in dependancies

2007-06-14 Thread Filip Brcic
/cmakeOrderTest.dir/main.o Linking CXX executable cmakeOrderTest [100%] Built target cmakeOrderTest I guess that is what you wanted to achieve. So, just move z.cpp to the top of your source list and it will be built first (if needed). Best regards Filip PS: I have attached a 750 bytes arch

Re: [CMake] compiling implementation first in dependancies

2007-06-14 Thread Filip Brcic
s/cmakeOrderTest.dir/main.o Linking CXX executable cmakeOrderTest [100%] Built target cmakeOrderTest I guess that is what you wanted to acheve. So, just move z.cpp to the top of your source list and it will be built first (if needed). Best regards Filip PS: I have attached a 750 bytes arch

Re: [CMake] add_definitions & "string" values

2007-06-12 Thread Filip Brcic
tions(-DFOO="\\"foo\\"") so that you get gcc -DFOO="\"foo\"" yourfile.c when CMake compiles your file and, obviously, FOO="foo" in C. On the sidenote, how does that relate to various shells? I'm using bash, but did anybody cases with

Re: [CMake] Putting # character in the custom_command arguments

2007-06-03 Thread Filip Brcic
Дана субота 02 јун 2007, Pau Garcia i Quiles је написао(ла): > Hello, > > Have you tried to escape it with '\'? > > grep '\#define' somefile | sed -e 's/\$//g' > someotherfile Thanx, that solved my problem. I didn't realize that you can esca

[CMake] Putting # character in the custom_command arguments

2007-06-02 Thread Filip Brcic
he # character into the command line of my custom command? If not, I will do what I do now - make a shell script and just execute it from cmake. But I would prefer if I could avoid that script and keep the commands in the makefiles (CMakeLists that is). Thank you, Filip Brcic -- Filip Brcic &l