From 34de84b35bc721ce3e3728789e97b4b295c1c01f Mon Sep 17 00:00:00 2001 From: Fabrice Bellet Date: Tue, 17 Feb 2015 20:14:04 +0100 Subject: [PATCH] Use system iaxclient instead of bundled one --- 3rdparty/CMakeLists.txt | 4 ---- CMakeLists.txt | 1 - src/Main/CMakeLists.txt | 2 +- src/Network/fgcom.cxx | 2 +- utils/fgcom/CMakeLists.txt | 2 +- utils/fgcom/fgcom.cxx | 2 +- 6 files changed, 4 insertions(+), 9 deletions(-) diff --git a/3rdparty/CMakeLists.txt b/3rdparty/CMakeLists.txt index ec9822c..a385193 100644 --- a/3rdparty/CMakeLists.txt +++ b/3rdparty/CMakeLists.txt @@ -3,10 +3,6 @@ if (NOT SYSTEM_SQLITE) add_subdirectory(sqlite3) endif() -if (ENABLE_IAX) - add_subdirectory(iaxclient/lib) -endif() - add_subdirectory(mongoose) add_subdirectory(cjson) diff --git a/CMakeLists.txt b/CMakeLists.txt index a902ea8..bbe0e47 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -192,7 +192,6 @@ endif() if(ENABLE_FGCOM) set(ENABLE_IAX 1) - include_directories(${PROJECT_SOURCE_DIR}/3rdparty/iaxclient/lib ) # for iaxclient.h endif() # Setup MSVC 3rd party directories diff --git a/src/Main/CMakeLists.txt b/src/Main/CMakeLists.txt index 949b379..12c0961 100644 --- a/src/Main/CMakeLists.txt +++ b/src/Main/CMakeLists.txt @@ -117,7 +117,7 @@ if(ENABLE_JSBSIM) target_link_libraries(fgfs JSBSim) endif() if(ENABLE_IAX) - target_link_libraries(fgfs iaxclient_lib ${OPENAL_LIBRARY}) + target_link_libraries(fgfs iaxclient ${OPENAL_LIBRARY}) endif() if(USE_DBUS) target_link_libraries(fgfs ${DBUS_LIBRARIES}) diff --git a/src/Network/fgcom.cxx b/src/Network/fgcom.cxx index 8d1bfc9..b501bd7 100644 --- a/src/Network/fgcom.cxx +++ b/src/Network/fgcom.cxx @@ -39,7 +39,7 @@ #include #include -#include <3rdparty/iaxclient/lib/iaxclient.h> +#include #define NUM_CALLS 4 diff --git a/utils/fgcom/CMakeLists.txt b/utils/fgcom/CMakeLists.txt index bfa43e3..b764cca 100644 --- a/utils/fgcom/CMakeLists.txt +++ b/utils/fgcom/CMakeLists.txt @@ -25,7 +25,7 @@ add_executable(${name} ) target_link_Libraries(${name} - iaxclient_lib + iaxclient ${OPENAL_LIBRARY} ${SIMGEAR_CORE_LIBRARIES} ${SIMGEAR_CORE_LIBRARY_DEPENDENCIES} diff --git a/utils/fgcom/fgcom.cxx b/utils/fgcom/fgcom.cxx index 35351b7..2266d77 100644 --- a/utils/fgcom/fgcom.cxx +++ b/utils/fgcom/fgcom.cxx @@ -36,7 +36,7 @@ #include #include -#include <3rdparty/iaxclient/lib/iaxclient.h> +#include #include "fgcom.hxx" #include "positions.hxx" // provides _positionsData[]; -- 2.1.0