File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
src/apps/ojph_stream_expand Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 11## building ojph_stream_expand
22##############################
33
4- set (CMAKE_CXX_STANDARD 14 )
4+ find_package (Threads )
55
66file (GLOB OJPH_STREAM_EXPAND "*.cpp" "*.h" )
77file (GLOB OJPH_SOCKETS "../others/ojph_sockets.cpp" )
@@ -17,10 +17,9 @@ source_group("common" FILES ${OJPH_SOCKETS_H} ${OJPH_THREADS_H})
1717
1818add_executable (ojph_stream_expand ${SOURCES} )
1919target_include_directories (ojph_stream_expand PRIVATE ../common)
20- if (MSVC OR MINGW)
21- target_link_libraries (ojph_stream_expand PUBLIC openjph ws2_32)
22- else ()
23- target_link_libraries (ojph_stream_expand PUBLIC openjph pthread)
20+ target_link_libraries (ojph_stream_expand PRIVATE openjph Threads::Threads)
21+ if (WIN32 )
22+ target_link_libraries (ojph_stream_expand PRIVATE ws2_32)
2423endif ()
2524
2625install (TARGETS ojph_stream_expand)
You can’t perform that action at this time.
0 commit comments