From eac59a79d8e9589ccc3f1c8879478fd1b9502eef Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 22 Nov 2020 17:31:05 -0800 Subject: [PATCH] build-system/downloader: cli-downloader isn't part of the core It's part of the main excutable / helper and needs to be linked before all of our support libraries. Signed-off-by: Dirk Hohndel --- CMakeLists.txt | 1 + core/cli-downloader.cpp => cli-downloader.cpp | 0 core/CMakeLists.txt | 5 ----- 3 files changed, 1 insertion(+), 5 deletions(-) rename core/cli-downloader.cpp => cli-downloader.cpp (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index a023a8a63..79fd6eddd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -392,6 +392,7 @@ elseif (SUBSURFACE_TARGET_EXECUTABLE MATCHES "DesktopExecutable") elseif (SUBSURFACE_TARGET_EXECUTABLE MATCHES "DownloaderExecutable") set(DOWNLOADER_APP subsurface-downloader-main.cpp + cli-downloader.cpp ) source_group("Downloader App" FILES ${DOWNLOADER_APP}) add_executable(${SUBSURFACE_TARGET} MACOSX_BUNDLE WIN32 ${SUBSURFACE_PKG} ${DOWNLOADER_APP} ${SUBSURFACE_RESOURCES}) diff --git a/core/cli-downloader.cpp b/cli-downloader.cpp similarity index 100% rename from core/cli-downloader.cpp rename to cli-downloader.cpp diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt index 51ccf608f..1ed24019c 100644 --- a/core/CMakeLists.txt +++ b/core/CMakeLists.txt @@ -20,10 +20,6 @@ if(FTDISUPPORT) set(SERIAL_FTDI serial_ftdi.c) endif() -if (SUBSURFACE_TARGET_EXECUTABLE MATCHES "DownloaderExecutable") - set(DOWNLOADER cli-downloader.cpp) -endif() - if(BTSUPPORT) add_definitions(-DBT_SUPPORT) set(BT_SRC_FILES desktop-widgets/btdeviceselectiondialog.cpp) @@ -256,7 +252,6 @@ set(SUBSURFACE_CORE_LIB_SRCS ${SERIAL_FTDI} ${PLATFORM_SRC} ${BT_CORE_SRC_FILES} - ${DOWNLOADER} ) source_group("Subsurface Core" FILES ${SUBSURFACE_CORE_LIB_SRCS})