use project to set language

This commit is contained in:
Patricia Aas 2021-09-10 12:19:12 +02:00
parent b30d71ac96
commit 9f64660938

View file

@ -21,8 +21,7 @@ if(NOT DEFINED CMAKE_TOOLCHAIN_FILE)
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/toolchain.cmake")
endif()
enable_language(CXX)
project(pacman)
project(pacman LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)