-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 је написао(ла):
> >&
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
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
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
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
/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
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
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
Дана субота 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
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
10 matches
Mail list logo