Skip to content

Commit

Permalink
C++17 に落としてみる
Browse files Browse the repository at this point in the history
  • Loading branch information
melpon committed Sep 19, 2023
1 parent b10d5a8 commit 6760a87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
# libsora.a を作る

add_library(sora STATIC)
set_target_properties(sora PROPERTIES CXX_STANDARD 20 C_STANDARD 20)
set_target_properties(sora PROPERTIES CXX_STANDARD 17 C_STANDARD 17)

string(SUBSTRING "${SORA_CPP_SDK_COMMIT}" 0 8 SORA_CPP_SDK_COMMIT_SHORT)
string(SUBSTRING "${WEBRTC_COMMIT}" 0 8 WEBRTC_COMMIT_SHORT)
Expand Down
2 changes: 1 addition & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ if (USE_LYRA)
endif()

function (init_target target)
set_target_properties(${target} PROPERTIES CXX_STANDARD 20 C_STANDARD 20)
set_target_properties(${target} PROPERTIES CXX_STANDARD 17 C_STANDARD 17)
set_target_properties(${target} PROPERTIES POSITION_INDEPENDENT_CODE ON)
target_link_libraries(${target} PRIVATE Sora::sora)

Expand Down

0 comments on commit 6760a87

Please sign in to comment.