Skip to content

Commit 4f1519c

Browse files
authored
opjh_stream_expand build tweaks
1 parent 2abecf8 commit 4f1519c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/apps/ojph_stream_expand/CMakeLists.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## building ojph_stream_expand
22
##############################
33

4-
set(CMAKE_CXX_STANDARD 14)
4+
find_package(Threads)
55

66
file(GLOB OJPH_STREAM_EXPAND "*.cpp" "*.h")
77
file(GLOB OJPH_SOCKETS "../others/ojph_sockets.cpp")
@@ -17,10 +17,9 @@ source_group("common" FILES ${OJPH_SOCKETS_H} ${OJPH_THREADS_H})
1717

1818
add_executable(ojph_stream_expand ${SOURCES})
1919
target_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)
2423
endif()
2524

2625
install(TARGETS ojph_stream_expand)

0 commit comments

Comments
 (0)