Hi,

I don't know how to manage projects with cmake, but I need to build an 
application without modifying its source nor the CMakeLists.txt file.

Everything compiles fine, the only problem is at the link time: It's not adding 
the Cocoa framework ("-framework Cocoa") at the end of the link line, so it 
fails in this moment.

The cause of the problem seems to be that I'm using an static build of SDL. The 
cmake SDL find module successfully adds "-framework Cocoa" after SDL when SDL 
is a shared library. However, if it's an static library, it's not added.

Isn't there any way for me to tell cmake to manually add "-framework Cocoa" at 
the end of the link line? As I said, this should be done at the command line, 
since I cannot edit CMakeLists.txt

Thank you in advance
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to