Public bug reported: The way dbus-cpp sets up gtest and gmock is broken and does not work with Ninja. To replicate:
bzr branch lp:dbus-cpp cd dbus-cpp mkdir build cd build cmake -DCMAKE_BUILD_TYPE=debug -G Ninja .. ninja This brings (eventually) a gazillion errors starting with this: [43/65] Building CXX object tests/CMakeFiles/compiler_test.dir/compiler_test.cpp.o FAILED: /usr/bin/c++ -DCORE_DBUS_ENABLE_GOOGLE_TEST_FIXTURE -std=c++11 -Werror -Wall -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -pedantic -Wextra -fPIC -pthread -g -I../include -I/usr/include/libxml2 -Itests -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -MMD -MT tests/CMakeFiles/compiler_test.dir/compiler_test.cpp.o -MF "tests/CMakeFiles/compiler_test.dir/compiler_test.cpp.o.d" -o tests/CMakeFiles/compiler_test.dir/compiler_test.cpp.o -c ../tests/compiler_test.cpp In file included from /usr/include/gmock/gmock-generated-function-mockers.h:43:0, from /usr/include/gmock/gmock.h:61, from ../tests/compiler_test.cpp:23: /usr/include/gmock/gmock-spec-builders.h:134:41: error: expected ‘;’ at end of member declaration bool VerifyAndClearExpectationsLocked() ^ /usr/include/gmock/gmock-spec-builders.h:135:38: error: ‘g_gmock_mutex’ is not a type GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex); ^ This happens with both Gcc 4.8 and 4.7. ** Affects: dbus-cpp (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1293599 Title: Does not compile with Ninja To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/dbus-cpp/+bug/1293599/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs