Skip to content

Commit 47dffbd

Browse files
authored
Fix linux build error (#842)
I ran into a build issue on Linux when using this package. It relies on C++17 features, but without explicitly setting the C++ standard in the package's CMakeLists.txt, the build system was defaulting to an older version.
1 parent cd318d2 commit 47dffbd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

linux/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ project(${PROJECT_NAME} LANGUAGES CXX C)
1111
# not be changed.
1212
set(PLUGIN_NAME "livekit_client_plugin")
1313

14+
set(CMAKE_CXX_STANDARD 17)
15+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
1416

1517
add_definitions(-D_USE_MATH_DEFINES)
1618
add_definitions(-DRTC_DESKTOP_DEVICE)

0 commit comments

Comments
 (0)