Skip to content

Commit

Permalink
Merge pull request #1091 from Sean-Der/macos-lib
Browse files Browse the repository at this point in the history
Configure datachannel target_properties for APPLE
  • Loading branch information
paullouisageneau authored Jan 17, 2024
2 parents 143a44d + b241cec commit 9c81967
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,13 @@ set_target_properties(datachannel PROPERTIES
SOVERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
CXX_STANDARD 17
CXX_VISIBILITY_PRESET default)

if(APPLE)
set_target_properties(datachannel PROPERTIES
VERSION ${PROJECT_VERSION_MAJOR}
SOVERSION ${PROJECT_VERSION_MAJOR})
endif()

target_compile_definitions(datachannel PRIVATE RTC_EXPORTS)

add_library(datachannel-static STATIC EXCLUDE_FROM_ALL
Expand Down

0 comments on commit 9c81967

Please sign in to comment.