|
|
|
Re: C++11 CMake based project no support in indexer [message #1404521 is a reply to message #1251900] |
Sat, 02 August 2014 21:08 |
Kamil Saigol Messages: 7 Registered: July 2014 |
Junior Member |
|
|
In addition to what you did, use the "Dialect" option under Project Properties -> C++ Build -> Settings -> GCC C++ Compiler (or whatever your toolchain compiler is).
If the dialect option isn't there, add -std=c++11 to "Miscellaneous" under GCC C++ Compiler and GCC C++ Linker.
Finally, does adding the following to the main CMakeLists.txt file help at all?
if (${CMAKE_EXTRA_GENERATOR} MATCHES "Eclipse CDT4")
add_definitions (-DCMAKE_CXX_COMPILER_ARG1=-std=c++11)
add_definitions (-DCMAKE_ECLIPSE_GENERATE_SOURCE_PROJECT=TRUE)
endif (${CMAKE_EXTRA_GENERATOR} MATCHES "Eclipse CDT4")
[Updated on: Sat, 02 August 2014 21:12] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.04478 seconds