The following issue has been SUBMITTED. ====================================================================== http://public.kitware.com/Bug/view.php?id=13754 ====================================================================== Reported By: Edward Rudd Assigned To: ====================================================================== Project: CMake Issue ID: 13754 Category: CMake Reproducibility: always Severity: block Priority: normal Status: new ====================================================================== Date Submitted: 2012-11-28 23:31 WAST Last Modified: 2012-11-28 23:31 WAST ====================================================================== Summary: Ninja: Framework paths are not correctly added to g++ commandline args. Description: I have a project that uses a custom framework path to find OS X frameworks. When using the ninja generator the -F/path/to/framework/path is not added to the GCC command line causing compiles to fail.
Steps to Reproduce: FIND_LIBRARY(SDL2_LIBRARY SDL2 PATHS SDL2/lib/osx) MARK_AS_ADVANCED(SDL2_LIBRARY) ADD_LIBRARY(Lib STATIC ${SOURCE} ) TARGET_LINK_LIBRARIES(Lib ${SDL2_LIBRARY} ) Additional Information: This is the C++ command called when using the unix makefile generator (paths changed to protect the innocent) /usr/bin/c++ -D_DEV -g -arch i386 -isysroot /Developer/SDKs/MacOSX10.6.sdk -I/path/to/source/src/.. -F/path/to/source/SDL2/lib/osx -o CMakeFiles/Lib.dir/SDL2Threading.cpp.o -c /path/to/source/src/SDL2Threading.cpp This is that ninja called /usr/bin/c++ -D_DEV -g -arch i386 -isysroot /Developer/SDKs/MacOSX10.6.sdk -I/path/to/source/src/.. -MMD -MT Lib/CMakeFiles/Lib.dir/SDL2Threading.cpp.o -MF "Lib/CMakeFiles/Lib.dir/SDL2Threading.cpp.o.d" -o Lib/CMakeFiles/Lib.dir/SDL2Threading.cpp.o -c /path/to/source/src/SDL2Threading.cpp ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2012-11-28 23:31 Edward Rudd New Issue ====================================================================== -- 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://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers