sdl2-config.cmake: extra leading / trailing whitespace

Bug #1869757 reported by William Breathitt Gray
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libsdl2 (Debian)
Fix Released
Unknown
libsdl2 (Ubuntu)
Fix Released
Undecided
Unassigned
Xenial
Won't Fix
Undecided
Unassigned

Bug Description

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)?

Changed in libsdl2 (Debian):
status: Unknown → Fix Released
Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

Sadly xenial is EOL, please upgrade to a newer LTS

Changed in libsdl2 (Ubuntu):
status: New → In Progress
status: In Progress → Fix Released
Changed in libsdl2 (Ubuntu Xenial):
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.