C++11/14 constructs not recognized

Hi there, I keep struggling getting Clion to recognize C++11/14 constructs (such as std::function, std::this_thread, std::shared_ptr etc.) under MacOS or Linux. This is for a large CMake-based project comprising several libraries (each as its own target) as well as many example programs. You can check this out yourself using the command "git clone git://git.launchpad.net/geneva ." on MacOS or Linux.

The project compiles fine, but is not correctly recognized as a C++11/14 project by CLion (both the current EAP and the stable version). I have tried different CMake versions (built-in and 3.8.0rc1). 

I even specify explicitly the C++ standard being used in my CMakeLists.txt like this:

SET_TARGET_PROPERTIES(
${GENEVA_LIBNAME}
PROPERTIES
VERSION ${GENEVA_VERSION}
CXX_STANDARD 14
CXX_STANDARD_REQUIRED 14
MACOSX_RPATH ${INSTALL_PREFIX_LIBS}
)

Any idea what the reason for this behavior might be? The problem persists since YEARS for me and has not been fixed (for me).

Kind Regards,
Beet
0

请先登录再写评论。