Skip to content
Permalink
Browse files

add framework path to link test to fix OS X SDK problem

  • Loading branch information
kyngchaos committed Apr 2, 2013
1 parent fd15be3 commit 87572f72e8519e9cb4e77981c90c66c7d63c4ee6
Showing with 4 additions and 0 deletions.
  1. +4 −0 cmake/FindOSGEARTH.cmake
@@ -105,6 +105,10 @@ IF( OSGEARTH_LIBRARY AND OSGEARTH_INCLUDE_DIR )
SET(SAFE_CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES})
SET(CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES} ${OSGEARTH_INCLUDE_DIR})
SET(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} ${OSGEARTHUTIL_LIBRARY})
IF(APPLE)
# no extra LDFLAGS used in link test, may fail in OS X SDK
SET(CMAKE_REQUIRED_LIBRARIES "-F/Library/Frameworks" ${CMAKE_REQUIRED_LIBRARIES})
ENDIF(APPLE)
CHECK_CXX_SOURCE_COMPILES("
#include <osgEarthUtil/Controls>
using namespace osgEarth::Util::Controls;

0 comments on commit 87572f7

Please sign in to comment.
You can’t perform that action at this time.