Public bug reported:

I use cmake to build a project which uses qt5. In zesty and artful
compiling fails with:

error: ‘remove_reference_t’ is not a member of ‘std’

I created a minimal example and found out that linking against qt5 like
this: target_link_libraries(testlib Qt5::Core) leads to the compiler not
finding c++14 types. If I remove Qt5::Core from the line the minimal
example compiles.

I use a line like this to compile:
cd ~/cmake_bug/build && rm -rf * && cmake -D CMAKE_BUILD_TYPE=Release ../src && 
make


The problem does NOT affect 16.04. With 16.10 I don't know.

** Affects: cmake (Ubuntu)
     Importance: Undecided
         Status: New

** Attachment added: "minimal example to reproduce the bug"
   
https://bugs.launchpad.net/bugs/1725664/+attachment/4981917/+files/cmake_bug.tar.gz

-- 
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to cmake in Ubuntu.
https://bugs.launchpad.net/bugs/1725664

Title:
  linking against qt5 breaks c++14

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cmake/+bug/1725664/+subscriptions

-- 
kubuntu-bugs mailing list
kubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kubuntu-bugs

Reply via email to