Skip to content

Commit

Permalink
[build] Sendfile and recvfile examples don't need C++11.
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsharabayko committed May 3, 2022
1 parent 0b47e6f commit 886843e
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1247,16 +1247,9 @@ if (ENABLE_EXAMPLES)

srt_add_example(recvlive.cpp)

# Don't compile examples that do require C++11

if (ENABLE_CXX11)
srt_add_example(sendfile.cpp)
target_compile_options(sendfile PRIVATE ${CFLAGS_CXX_STANDARD})
srt_add_example(sendfile.cpp)

srt_add_example(recvfile.cpp)
target_compile_options(recvfile PRIVATE ${CFLAGS_CXX_STANDARD})
endif()

srt_add_example(recvfile.cpp)

srt_add_example(test-c-client.c)

Expand Down

0 comments on commit 886843e

Please sign in to comment.