Use the find_dependency option to parse Simgear dependencies to FlightGear

This commit is contained in:
Erik Hofman
2021-03-08 16:15:14 +01:00
parent 023364e245
commit c0205f7eb2
3 changed files with 12 additions and 3 deletions
+2 -3
View File
@@ -211,11 +211,10 @@ else()
endif(ENABLE_RTI)
if(ENABLE_CYCLONE)
if (NOT TARGET CycloneDDS::ddsc)
find_package(CycloneDDS QUIET)
endif()
find_package(CycloneDDS QUIET)
if (CycloneDDS_FOUND)
message(STATUS "Data Distribution Service support: CycloneDDS")
set(SG_HAVE_DDS 1)
else(CycloneDDS_FOUND)
message(STATUS "Data Distribution Service support: DISBLED")
endif(CycloneDDS_FOUND)