The following issue has been SUBMITTED. ====================================================================== http://public.kitware.com/Bug/view.php?id=13904 ====================================================================== Reported By: Nicholas Bishop Assigned To: ====================================================================== Project: CMake Issue ID: 13904 Category: CMake Reproducibility: always Severity: minor Priority: normal Status: new ====================================================================== Date Submitted: 2013-02-09 17:18 EST Last Modified: 2013-02-09 17:18 EST ====================================================================== Summary: CMAKE_AUTOMOC misses headers with ".hh" extension Description: Automoc fails to run on included headers with a ".hh" extension, works correctly if file is renamed with a ".h" extension.
Steps to Reproduce: A minimal example is attached. 1) Untar automoc_bug.tar.gz 2) Run "cmake -G Unix\ Makefiles" 3) Run "make" Make fails with: CMakeFiles/a.dir/main.cc.o: In function `Foo::Foo()': main.cc:(.text+0x3a): undefined reference to `vtable for Foo' main.cc:(.text+0x46): undefined reference to `vtable for Foo' CMakeFiles/a.dir/main.cc.o: In function `Foo::~Foo()': main.cc:(.text._ZN3FooD2Ev[_ZN3FooD5Ev]+0x13): undefined reference to `vtable for Foo' main.cc:(.text._ZN3FooD2Ev[_ZN3FooD5Ev]+0x1f): undefined reference to `vtable for Foo' collect2: error: ld returned 1 exit status make[2]: *** [a] Error 1 make[1]: *** [CMakeFiles/a.dir/all] Error 2 make: *** [all] Error 2 4) Rename "main.hh" to "main.h" 5) Edit line 1 of "main.c" to include "main.h" instead of "main.hh" 6) Re-run "make" This time make succeeds. ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2013-02-09 17:18 Nicholas BishopNew Issue 2013-02-09 17:18 Nicholas BishopFile Added: automoc_bug.tar.gz ====================================================================== -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
