Skip to content

Commit

Permalink
Set CMAKE_CXX_STANDARD before enabling CXX language
Browse files Browse the repository at this point in the history
  • Loading branch information
srcejon committed May 20, 2024
1 parent 7ef98ae commit bb40c10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ project(usb-1.0
LANGUAGES C
)
if(EMSCRIPTEN)
enable_language(CXX)
set(CMAKE_CXX_STANDARD 20)
enable_language(CXX)
endif()

# This function generates all the local variables what end up getting written to config.
Expand Down

0 comments on commit bb40c10

Please sign in to comment.