From 3504705e5318bcd2f050b9444b3660b70e601cbf Mon Sep 17 00:00:00 2001 From: Russ Webber Date: Tue, 7 Jan 2020 18:01:01 +1100 Subject: [PATCH] pShare: fix include path to GetPot. fix error with postbuild copy --- Essentials/pShare/CMakeLists.txt | 3 +-- Essentials/pShare/Share.cpp | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Essentials/pShare/CMakeLists.txt b/Essentials/pShare/CMakeLists.txt index 5128a50..1ebc8ea 100644 --- a/Essentials/pShare/CMakeLists.txt +++ b/Essentials/pShare/CMakeLists.txt @@ -17,7 +17,6 @@ INSTALL(TARGETS ${EXECNAME} #copy resources file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/pshare_test_scripts DESTINATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}) - add_custom_command(TARGET pShare POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_directory - ${CMAKE_SOURCE_DIR}/pshare_test_scripts ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}) + ${CMAKE_CURRENT_SOURCE_DIR}/pshare_test_scripts ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}) diff --git a/Essentials/pShare/Share.cpp b/Essentials/pShare/Share.cpp index 7825e00..756a760 100644 --- a/Essentials/pShare/Share.cpp +++ b/Essentials/pShare/Share.cpp @@ -17,7 +17,7 @@ #include "MOOS/libMOOS/Utils/MOOSUtilityFunctions.h" #include "MOOS/libMOOS/Utils/IPV4Address.h" -#include "MOOS/libMOOS/Thirdparty/getpot/GetPot" +#include "MOOS/libMOOS/Thirdparty/getpot/GetPot.hpp" #include "MOOS/libMOOS/Utils/SafeList.h" #include "MOOS/libMOOS/Utils/ConsoleColours.h" #include "MOOS/libMOOS/Utils/KeyboardCapture.h"