From Roland Häder - fix JPEG-server check when SimGear and OSG live at different prefixes.
This commit is contained in:
parent
c1eca1ff6b
commit
f99e310e03
1 changed files with 5 additions and 1 deletions
|
@ -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; } "
|
||||
|
|
Loading…
Reference in a new issue