Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Cmake and C++ dialect(How can I set the C++ dialect after a cmake project has been created?)
Cmake and C++ dialect [message #1856918] Mon, 09 January 2023 12:52
Ben Engbers is currently offline Ben EngbersFriend
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
Previous Topic:PATH for makefile and main.c
Next Topic:Cmake and 'type can not be resolved' errors
Goto Forum:
  


Current Time: Sun Jan 19 23:25:02 GMT 2025

Powered by FUDForum. Page generated in 0.03926 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top