CMake: Handle osgXR includes implicitly
Recent CMake versions automatically add the include paths when flightgear is linked against the osgXR::osgXR target, and code in SetupFGFSLibraries.cmake handles older CMake versions. Therefore drop the osgXR special handling in SetupFGFSIncludes.cmake and handle old versions in SetupFGFSLibraries.cmake as done for the other libraries.
This commit is contained in:
parent
54699d46aa
commit
31956f1f33
2 changed files with 4 additions and 4 deletions
|
@ -4,10 +4,6 @@ function(setup_fgfs_includes target)
|
|||
target_include_directories(${target} PRIVATE ${PROJECT_SOURCE_DIR}/src/FDM/JSBSim)
|
||||
endif()
|
||||
|
||||
if(ENABLE_OSGXR)
|
||||
target_include_directories(${target} PRIVATE ${osgXR_INCLUDE_DIR})
|
||||
endif()
|
||||
|
||||
target_include_directories(${target} PRIVATE ${PLIB_INCLUDE_DIR})
|
||||
target_include_directories(${target} PRIVATE ${PROJECT_SOURCE_DIR}/3rdparty/cjson)
|
||||
# only actually needed for httpd.cxx
|
||||
|
|
|
@ -117,6 +117,10 @@ function (setup_fgfs_library_includes target)
|
|||
_apply_target_includes(${target} JSBSim)
|
||||
endif()
|
||||
|
||||
if(ENABLE_OSGXR)
|
||||
_apply_target_includes(${target} osgXR::osgXR)
|
||||
endif()
|
||||
|
||||
_apply_target_includes(${target} fgsqlite3)
|
||||
_apply_target_includes(${target} fgvoicesynth)
|
||||
_apply_target_includes(${target} fgembeddedresources)
|
||||
|
|
Loading…
Add table
Reference in a new issue