We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd15be3 commit 87572f7Copy full SHA for 87572f7
cmake/FindOSGEARTH.cmake
@@ -105,6 +105,10 @@ IF( OSGEARTH_LIBRARY AND OSGEARTH_INCLUDE_DIR )
105
SET(SAFE_CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES})
106
SET(CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES} ${OSGEARTH_INCLUDE_DIR})
107
SET(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} ${OSGEARTHUTIL_LIBRARY})
108
+ IF(APPLE)
109
+ # no extra LDFLAGS used in link test, may fail in OS X SDK
110
+ SET(CMAKE_REQUIRED_LIBRARIES "-F/Library/Frameworks" ${CMAKE_REQUIRED_LIBRARIES})
111
+ ENDIF(APPLE)
112
CHECK_CXX_SOURCE_COMPILES("
113
#include <osgEarthUtil/Controls>
114
using namespace osgEarth::Util::Controls;
0 commit comments