Skip to content

Commit

Permalink
CMake: appends CXX to languages, in a better syntax
Browse files Browse the repository at this point in the history
As suggested by dantti
  • Loading branch information
nicmorais committed Apr 2, 2024
1 parent abe3462 commit ddd71aa
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 @@ -4,7 +4,7 @@ set(PROJECT_LANGUAGES C)

if(DEFINED CMAKE_CXX_COMPILER)
set(CMAKE_CXX_STANDARD 17)
set(PROJECT_LANGUAGES C CXX)
list(APPEND PROJECT_LANGUAGES CXX)
endif(DEFINED CMAKE_CXX_COMPILER)

project(LibVNCServer VERSION 0.9.14 LANGUAGES ${PROJECT_LANGUAGES})
Expand Down

0 comments on commit ddd71aa

Please sign in to comment.