MantisBT - CMake
View Issue Details
0013754CMakeCMakepublic2012-11-28 16:312016-06-10 14:31
Edward Rudd 
Kitware Robot 
normalblockalways
closedmoved 
CMake 2.8.9 
 
0013754: Ninja: Framework paths are not correctly added to g++ commandline args.
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.

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} )
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
macosx, ninja
Issue History
2012-11-28 16:31Edward RuddNew Issue
2013-01-17 21:18Edward RuddTag Attached: macosx
2013-01-17 21:18Edward RuddTag Attached: ninja
2013-01-17 21:19Edward RuddNote Added: 0032118
2013-03-09 06:30Peter KuemmelNote Added: 0032557
2013-03-09 06:30Peter KuemmelStatusnew => backlog
2016-06-10 14:28Kitware RobotNote Added: 0042160
2016-06-10 14:28Kitware RobotStatusbacklog => resolved
2016-06-10 14:28Kitware RobotResolutionopen => moved
2016-06-10 14:28Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0032118)
Edward Rudd   
2013-01-17 21:19   
This still occurs with cmake 2.8.10.2
(0032557)
Peter Kuemmel   
2013-03-09 06:30   
Bug is not new any more, move to backlog for later processing.
(0042160)
Kitware Robot   
2016-06-10 14:28   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.