From d7b311cb34ea751045405106c764b74df92bce0c Mon Sep 17 00:00:00 2001 From: Wolfgang Thaller Date: Sat, 14 Sep 2019 02:20:09 +0200 Subject: [PATCH] LaunchAPPLServer: don't link to Navigation if Navigation.h not found --- LaunchAPPL/Server/CMakeLists.txt | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/LaunchAPPL/Server/CMakeLists.txt b/LaunchAPPL/Server/CMakeLists.txt index 882816c670..018a1687c1 100644 --- a/LaunchAPPL/Server/CMakeLists.txt +++ b/LaunchAPPL/Server/CMakeLists.txt @@ -123,11 +123,13 @@ if(HAVE_OPENTRANSPORT) endif() endif() -if(CMAKE_SYSTEM_NAME MATCHES RetroPPC) - target_link_libraries(LaunchAPPLServer -lNavigationLib) -endif() -if(CMAKE_SYSTEM_NAME MATCHES Retro68) - target_link_libraries(LaunchAPPLServer -lNavigation.far) +if(HAVE_NAVIGATION) + if(CMAKE_SYSTEM_NAME MATCHES RetroPPC) + target_link_libraries(LaunchAPPLServer -lNavigationLib) + endif() + if(CMAKE_SYSTEM_NAME MATCHES Retro68) + target_link_libraries(LaunchAPPLServer -lNavigation.far) + endif() endif() if(FALSE)