Jean-Pierre,
I set -static flag in the top level CMakeLists.txt:
SET (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static")
before ADD_SUBDIRECTORY.
I didn't find any error in your files, I would do the same with exception to
-static flag.
Denis
> May I ask what platform you are using? I just tried the
> following simplest
> example on FreeBSD 6 and on Ubuntu 8.10. On both platforms
> I do not manage
> to get a non-dyanamic executable. How do I get the
> "-static" flag set?
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake