Public bug reported:

Version: xenial (16.04LTS)
Package: libsdl2-dev (2.0.4+dfsg1-2ubuntu2.16.04.2)

When trying to use SDL2 in a project (GZDoom) with CMake, I encountered the
following error:

CMake Error at src/CMakeLists.txt:1164 (add_executable):
  Target "zdoom" links to item "-L/usr/lib/x86_64-linux-gnu -lSDL2 " which
  has leading or trailing whitespace.  This is now an error according to
  policy CMP0004.

This is the relevant part of the CMakeLists.txt:

------------------------------

find_package( SDL2 REQUIRED CONFIG )

------------------------------

I see that this bug was fix in Debian back in 2016 with the release of
package version 2.0.4+dfsg2-1: https://bugs.debian.org/cgi-
bin/bugreport.cgi?bug=822210#52

Ubuntu xenial (16.04LTS) is currently on an older version
(2.0.4+dfsg1-2ubuntu2.16.04.2) before the bug fix was applied.

Can the Debian bug fix be picked up for Ubuntu xenial (16.04LTS)?

** Affects: libsdl2 (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/1869757

Title:
  sdl2-config.cmake: extra leading / trailing whitespace

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

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

Reply via email to