+11
-12
lines changedFilter options
+11
-12
lines changed Original file line number Diff line number Diff line change
@@ -1242,36 +1242,35 @@ if (ENABLE_EXAMPLES)
1242
1242
macro(srt_add_example mainsrc)
1243
1243
get_filename_component(name ${mainsrc} NAME_WE)
1244
1244
srt_add_program(${name} examples/${mainsrc} ${ARGN})
1245
+
target_link_libraries(${name} ${srt_link_library} ${DEPENDS_srt})
1245
1246
endmacro()
1246
1247
1247
-
srt_add_example(sendfile.cpp)
1248
-
srt_make_application(sendfile)
1248
+
srt_add_example(recvlive.cpp)
1249
1249
1250
-
srt_add_example(recvfile.cpp)
1251
-
srt_make_application(recvfile)
1250
+
# Don't compile examples that do require C++11
1251
+
1252
+
if (ENABLE_CXX11)
1253
+
srt_add_example(sendfile.cpp apps/logsupport.cpp)
1254
+
target_compile_options(sendfile PRIVATE ${CFLAGS_CXX_STANDARD})
1255
+
1256
+
srt_add_example(recvfile.cpp apps/logsupport.cpp)
1257
+
target_compile_options(recvfile PRIVATE ${CFLAGS_CXX_STANDARD})
1258
+
endif()
1252
1259
1253
-
srt_add_example(recvlive.cpp)
1254
-
srt_make_application(recvlive)
1255
1260
1256
1261
srt_add_example(test-c-client.c)
1257
-
srt_make_application(test-c-client)
1258
1262
1259
1263
srt_add_example(example-client-nonblock.c)
1260
-
srt_make_application(example-client-nonblock)
1261
1264
1262
1265
srt_add_example(test-c-server.c)
1263
-
srt_make_application(test-c-server)
1264
1266
1265
1267
if (ENABLE_EXPERIMENTAL_BONDING)
1266
1268
srt_add_example(test-c-client-bonding.c)
1267
-
srt_make_application(test-c-client-bonding)
1268
1269
1269
1270
srt_add_example(test-c-server-bonding.c)
1270
-
srt_make_application(test-c-server-bonding)
1271
1271
endif()
1272
1272
1273
1273
srt_add_example(testcapi-connect.c)
1274
-
target_link_libraries(testcapi-connect ${srt_link_library} ${DEPENDS_srt})
1275
1274
endif()
1276
1275
1277
1276
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4