From 96d19e07ca5af0b41837eee7d55bbb353c2aaf7d Mon Sep 17 00:00:00 2001 From: Azdul Date: Wed, 16 Jan 2019 20:59:07 +0100 Subject: [PATCH] Fix Linux build --- components/CMakeLists.txt | 6 +++--- extern/bsaopthash/hash.cpp | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/components/CMakeLists.txt b/components/CMakeLists.txt index 7ab08292ee..bc99550d01 100644 --- a/components/CMakeLists.txt +++ b/components/CMakeLists.txt @@ -218,8 +218,7 @@ target_link_libraries(components ${Boost_FILESYSTEM_LIBRARY} ${Boost_THREAD_LIBRARY} ${Boost_PROGRAM_OPTIONS_LIBRARY} - ${Boost_IOSTREAMS_LIBRARY} - ${Boost_ZLIB_LIBRARY} + ${Boost_IOSTREAMS_LIBRARY} ${OSG_LIBRARIES} ${OPENTHREADS_LIBRARIES} ${OSGPARTICLE_LIBRARIES} @@ -241,7 +240,8 @@ target_link_libraries(components if (WIN32) target_link_libraries(components - ${Boost_LOCALE_LIBRARY}) + ${Boost_LOCALE_LIBRARY} + ${Boost_ZLIB_LIBRARY}) endif() if (USE_QT) diff --git a/extern/bsaopthash/hash.cpp b/extern/bsaopthash/hash.cpp index 029c542799..08c807da45 100644 --- a/extern/bsaopthash/hash.cpp +++ b/extern/bsaopthash/hash.cpp @@ -31,6 +31,7 @@ #include #include +#include #include "hash.hpp"