Skip to content

Commit

Permalink
add framework path to link test to fix OS X SDK problem
Browse files Browse the repository at this point in the history
  • Loading branch information
kyngchaos committed Apr 2, 2013
1 parent fd15be3 commit 87572f7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/FindOSGEARTH.cmake
Expand Up @@ -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;
Expand Down

0 comments on commit 87572f7

Please sign in to comment.