1
0
Fork 0

From Roland Häder - fix JPEG-server check when SimGear and OSG live at different prefixes.

This commit is contained in:
James Turner 2011-11-06 10:51:02 +00:00
parent c1eca1ff6b
commit f99e310e03

View file

@ -195,7 +195,11 @@ if (JPEG_FACTORY)
find_package(JPEG REQUIRED)
include_directories(${JPEG_INCLUDE_DIR})
set(CMAKE_REQUIRED_INCLUDES ${SIMGEAR_INCLUDE_DIR} ${JPEG_INCLUDE_DIR})
set(CMAKE_REQUIRED_INCLUDES
${SIMGEAR_INCLUDE_DIR}
${JPEG_INCLUDE_DIR})
${OPENSCENEGRAPH_INCLUDE_DIRS})
check_cxx_source_compiles(
"#include <simgear/screen/jpgfactory.hxx>
int main() { return 0; } "