View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013754CMakeCMakepublic2012-11-28 16:312016-06-10 14:31
ReporterEdward Rudd 
Assigned ToKitware Robot 
PrioritynormalSeverityblockReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product VersionCMake 2.8.9 
Target VersionFixed in Version 
Summary0013754: Ninja: Framework paths are not correctly added to g++ commandline args.
DescriptionI 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 InformationThis 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
Tagsmacosx, ninja
Attached Files

 Relationships

  Notes
(0032118)
Edward Rudd (reporter)
2013-01-17 21:19

This still occurs with cmake 2.8.10.2
(0032557)
Peter Kuemmel (developer)
2013-03-09 06:30

Bug is not new any more, move to backlog for later processing.
(0042160)
Kitware Robot (administrator)
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.

 Issue History
Date Modified Username Field Change
2012-11-28 16:31 Edward Rudd New Issue
2013-01-17 21:18 Edward Rudd Tag Attached: macosx
2013-01-17 21:18 Edward Rudd Tag Attached: ninja
2013-01-17 21:19 Edward Rudd Note Added: 0032118
2013-03-09 06:30 Peter Kuemmel Note Added: 0032557
2013-03-09 06:30 Peter Kuemmel Status new => backlog
2016-06-10 14:28 Kitware Robot Note Added: 0042160
2016-06-10 14:28 Kitware Robot Status backlog => resolved
2016-06-10 14:28 Kitware Robot Resolution open => moved
2016-06-10 14:28 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team