The following issue has been SUBMITTED. ====================================================================== https://public.kitware.com/Bug/view.php?id=15828 ====================================================================== Reported By: Franz Reinhardt Assigned To: ====================================================================== Project: CMake Issue ID: 15828 Category: CMake Reproducibility: always Severity: major Priority: normal Status: new ====================================================================== Date Submitted: 2015-11-03 05:10 EST Last Modified: 2015-11-03 05:10 EST ====================================================================== Summary: Indexer doesn't work with C++11 Description: *Environment* cmake version 3.3.2 Eclipse IDE for C/C++ Developers 4.5.1.20150917-1200 gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-suse-linux/4.8/lto-wrapper Target: x86_64-suse-linux Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.8 --enable-ssp --disable-libssp --disable-plugin --with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --disable-libgcj --disable-libmudflap --with-slibdir=/lib64 --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --enable-linker-build-id --enable-linux-futex --program-suffix=-4.8 --without-system-libunwind --with-arch-32=i586 --with-tune=generic --build=x86_64-suse-linux --host=x86_64-suse-linux Thread model: posix gcc version 4.8.3 20140627 [gcc-4_8-branch revision 212064] (SUSE Linux)
*Short description* if Steps to Reproduce: There's the source directory CmakeEclipseTest and an outof source build directory: cd into the build directory and call (please correct the paths according the environment) cmake -DCMAKE_ECLIPSE_VERSION=4.4 -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX="/home/visionuser/CoreEngine-x86_64-Linux/main/CmakeEclipseTest/stage" -DCMAKE_PREFIX_PATH="/home/visionuser/CoreEngine-x86_64-Linux/Sandbox" -G "Eclipse CDT4 - Unix Makefiles" -DCMAKE_ECLIPSE_GENERATE_SOURCE_PROJECT=TRUE /home/visionuser/CoreEngine-x86_64-Linux/main/CmakeEclipseTest Then open eclipse and import the existing project in your workspace (the build project). Then open main.cpp and rebuild the index. The std::smart_ptr will show up red. Additional Information: Most probably the creation of the .cproject file is done wrong: <pathentry kind="mac" name="__cplusplus" path="" value="199711L"/> Even when setting up the compiler to C++11 it creates the wrong __cplusplus entry. There are probably some duplicates of this bug, but their are related to different platforms, and they are still not fixed. ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2015-11-03 05:10 Franz ReinhardtNew Issue 2015-11-03 05:10 Franz ReinhardtFile Added: CmakeEclipseTest.tgz ====================================================================== -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers
