Post by Gonzalo GarramuñoPost by Filip BrcicTherefore, you have to override CMAKE_SHARED_LIBRARY_LINK_C_FLAGS and set
SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
or something like that.
Did you actually try it? Suppressing the variable does nothing.
Even replacing Linux.cmake with my own does nothing.
It works for me. Take a look at the attacked "program".
Here is my version of CMake:
[***@sirius ~]$ rpm -q cmake
cmake-2.4.6-4.fc7
and here is the output of the verbose build:
[***@sirius build]$ make VERBOSE=1
/usr/bin/cmake -H/Users/brcha/tmp/helloWorld -B/Users/brcha/tmp/helloWorld/build --check-build-system
CMakeFiles/Makefile.cmake 0
Clearing dependencies in "CMakeFiles/helloWorld.dir/depend.make".
Clearing dependencies in "CMakeFiles/helloWorld.dir/depend.internal".
/usr/bin/cmake -E
cmake_progress_start /Users/brcha/tmp/helloWorld/build/CMakeFiles 1
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory `/Users/brcha/tmp/helloWorld/build'
make -f CMakeFiles/helloWorld.dir/build.make CMakeFiles/helloWorld.dir/depend
make[2]: Entering directory `/Users/brcha/tmp/helloWorld/build'
Scanning dependencies of target helloWorld
cd /Users/brcha/tmp/helloWorld/build && /usr/bin/cmake -E cmake_depends "Unix
Makefiles" /Users/brcha/tmp/helloWorld /Users/brcha/tmp/helloWorld /Users/brcha/tmp/helloWorld/build /Users/brcha/tmp/helloWorld/build /Users/brcha/tmp/helloWorld/build/CMakeFiles/helloWorld.dir/DependInfo.cmake
make[2]: Leaving directory `/Users/brcha/tmp/helloWorld/build'
make -f CMakeFiles/helloWorld.dir/build.make CMakeFiles/helloWorld.dir/build
make[2]: Entering directory `/Users/brcha/tmp/helloWorld/build'
/usr/bin/cmake -E
cmake_progress_report /Users/brcha/tmp/helloWorld/build/CMakeFiles 1
[100%] Building C object CMakeFiles/helloWorld.dir/helloWorld.o
/usr/lib64/ccache/gcc -o
CMakeFiles/helloWorld.dir/helloWorld.o -c /Users/brcha/tmp/helloWorld/helloWorld.c
Linking C executable helloWorld
/usr/bin/cmake -P CMakeFiles/helloWorld.dir/cmake_clean_target.cmake
/usr/lib64/ccache/gcc -fPIC "CMakeFiles/helloWorld.dir/helloWorld.o" -o
helloWorld
make[2]: Leaving directory `/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/helloWorld/build/CMakeFiles 0
- --
Filip Brcic <***@users.sourceforge.net>
WWWeb: http://purl.org/NET/brcha/home/
Jabber: ***@kdetalk.net
ICQ# 40994923
Yahoo! brcha
MSN: ***@users.sourceforge.net