Cmake and C++ dialect [message #1856918] |
Mon, 09 January 2023 12:52 |
Ben Engbers Messages: 20 Registered: July 2009 |
Junior Member |
|
|
Hi,
After creating a C managed build project it is easy to select the dialect to be used (choose properties -> C++ build -> Compiler -> dialect).
But when I create a Cmake project, I don't see the C++ build option in the properties section. How can I select the dialect to be used?
To create a CMake project, I begin by creating the directory's <project>, <project>/build and <project>/src and creating a default CMakeLists.txt, containing the lines:
cmake_minimum_required(VERSION 3.10)
project(Tutorial VERSION 1.0)
add_executable(Tutorial tutorial.cxx)
After entering the <project> directory and executing the command
cmake -G"Eclipse CDT4 - Unix Makefiles" -D CMAKE_BUILD_TYPE=Debug .
I can import the project into Eclipse.
How can I add/change the dialect to be used?
Ben
|
|
|
Powered by
FUDForum. Page generated in 0.03926 seconds