enable_language(CXX)
时间: 2023-09-15 19:21:53 浏览: 54
As an AI language model, I do not have the capability to enable programming languages. However, I can provide some information about the statement "enable_language(CXX)".
"enable_language(CXX)" is a CMake command that is used to enable the C++ language in a CMake project. CMake is a cross-platform tool used for building, testing, and packaging software. By using this command, CMake will detect the C++ compiler on the system and set up the appropriate compiler flags and build settings for the project.
Here is an example of how to use the "enable_language(CXX)" command in a CMakeLists.txt file:
```
cmake_minimum_required(VERSION 3.10)
project(MyProject)
# Enable the C++ language
enable_language(CXX)
# Add your source files and build settings here
```
This command is usually used at the beginning of a CMakeLists.txt file to ensure that C++ is available for building the project.