[Bug 1725664] [NEW] linking against qt5 breaks c++14

Nils Schmidt nils.p.schmidt at googlemail.com
Sat Oct 21 11:58:25 UTC 2017


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 Ubuntu
Foundations Bugs, which is subscribed to cmake in Ubuntu.
https://bugs.launchpad.net/bugs/1725664

Title:
  linking against qt5 breaks c++14

Status in cmake package in Ubuntu:
  New

Bug description:
  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.

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



More information about the foundations-bugs mailing list