From b676b5e591b2317d6100ae90348dcd08d9be8723 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Ma=C5=82ecki?= Date: Thu, 14 Sep 2017 23:01:21 +0200 Subject: [PATCH] Blocked sf from compiling on Windows. Portability issue of using stat must be fixed. --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ffb05e902..64483a4c8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -450,10 +450,13 @@ if ( ENABLE_CXX11 ) ${SOURCES_transmit} ) +# sf must be temporarily blocked on Windows because it's not yet portable + if (NOT WIN32) add_executable(sf ${CMAKE_SOURCE_DIR}/apps/sf.cpp ${SOURCES_transmit} ) + endif() # Test programs add_executable(utility-test ${CMAKE_SOURCE_DIR}/apps/utility-test.cpp) @@ -467,9 +470,11 @@ if ( ENABLE_CXX11 ) target_link_libraries(siplex ${TARGET_srt} ${TARGET_haicrypt}) install(TARGETS siplex RUNTIME DESTINATION bin) + if (NOT WIN32) set_target_properties(sf PROPERTIES COMPILE_FLAGS "${CFLAGS_CXX_STANDARD} ${EXTRA_stransmit}") target_link_libraries(sf ${TARGET_srt} ${TARGET_haicrypt}) install(TARGETS sf RUNTIME DESTINATION bin) + endif() install(PROGRAMS scripts/sfplay DESTINATION bin)