Skip to content

Commit 2420556

Browse files
committed
Update standalone_compilation_linux.sh, add -DASIO_NO_DEPRECATED
1 parent 5fcb15e commit 2420556

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ target_include_directories(lslobj
198198
target_compile_definitions(lslobj PRIVATE
199199
LIBLSL_EXPORTS
200200
LOGURU_DEBUG_LOGGING=$<BOOL:${LSL_DEBUGLOG}>
201+
PUBLIC ASIO_NO_DEPRECATED
201202
)
202203

203204
# platform specific configuration

standalone_compilation_linux.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ set -e -x
1010
echo ${LSLGITREVISION:="$(git describe --tags HEAD)"}
1111
${CXX:-g++} -fPIC -fvisibility=hidden -O2 ${CFLAGS} ${CXXFLAGS} -Ilslboost \
1212
-DBOOST_ALL_NO_LIB \
13-
-DBOOST_THREAD_DONT_PROVIDE_INTERRUPTIONS \
14-
-DBOOST_ASIO_STANDALONE \
13+
-DASIO_NO_DEPRECATED \
1514
-DLOGURU_DEBUG_LOGGING=0 \
1615
-DLSL_LIBRARY_INFO_STR=\"${LSLGITREVISION:-"built from standalone build script"}\" \
1716
src/*.cpp src/util/*.cpp \
1817
thirdparty/pugixml/pugixml.cpp -Ithirdparty/pugixml \
1918
thirdparty/loguru/loguru.cpp -Ithirdparty/loguru \
19+
-Ithirdparty/asio \
2020
lslboost/serialization_objects.cpp \
2121
${LDFLAGS} \
2222
-shared -o liblsl.so -lpthread -lrt -ldl

0 commit comments

Comments
 (0)