Skip to content

Commit

Permalink
cmake : fix producing a trivial_signaling_server rather than trivial_…
Browse files Browse the repository at this point in the history
…signaling_server.exe PE executable on Windows
  • Loading branch information
TTimo committed Sep 29, 2024
1 parent 62b3951 commit cc2ed86
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ if( ENABLE_ICE AND ( BUILD_EXAMPLES OR BUILD_TESTS ) )
else()
set(SIGNAL_SERVER_TARGET trivial_signaling_server)

set(SIGNAL_SERVER_OUTPUT ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/trivial_signaling_server)
if ( WIN32 )
set(SIGNAL_SERVER_OUTPUT ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/trivial_signaling_server.exe)
else()
set(SIGNAL_SERVER_OUTPUT ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/trivial_signaling_server)
endif()
set(SIGNAL_SERVER_SRCS
trivial_signaling_server.go
)
Expand Down

0 comments on commit cc2ed86

Please sign in to comment.