Skip to content

Commit

Permalink
Blocked sf from compiling on Windows. Portability issue of using stat…
Browse files Browse the repository at this point in the history
… must be fixed.
  • Loading branch information
Mikołaj Małecki committed Sep 14, 2017
1 parent 7d6c883 commit b676b5e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)

Expand Down

0 comments on commit b676b5e

Please sign in to comment.