Use the find_dependency option to parse Simgear dependencies to FlightGear
This commit is contained in:
+2
-3
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user