Description of problem: sdl2-config.cmake from package has some whitespace characters in the middle and at the end of SDL2_LIBRRIES value. It looks like this: set(SDL2_LIBRARIES "-L${SDL2_LIBDIR} -lSDL2 ") This is a violation of CMP0004 (https://cmake.org/cmake/help/v3.0/policy/CMP0004.html). Version-Release number of selected component (if applicable): 2.0.4-6.fc24 (x86_64) How reproducible: By using CMake's find_package: find_package(SDL2 REQUIRED) Steps to Reproduce: 1. Create a valid CMakeLists.txt with find_package. 2. Run cmake. Actual results: CMake Error at CMakeLists.txt:<some_line> (add_library): Target "sdl2" links to item "-L/usr/lib64 -lSDL2 " which has leading or trailing whitespace. This is now an error according to policy CMP0004. Expected results: No error. Additional info: None.
Upstream template of tag 2.0.4 (http://hg.libsdl.org/SDL/file/e12c38730512/sdl2-config.cmake.in) is: set(SDL2_LIBRARIES "-L${SDL2_LIBDIR} @SDL_RLD_FLAGS@ @SDL_LIBS@")
Could you report this bug to upstream please?
I found it there: https://bugzilla.libsdl.org/show_bug.cgi?id=3295 and the patch: https://bugzilla.libsdl.org/attachment.cgi?id=2457&action=diff
SDL2-2.0.4-8.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-80286cd005
SDL2-2.0.4-8.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-03504c1a77
SDL2-2.0.4-8.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-03504c1a77
SDL2-2.0.4-8.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-80286cd005
SDL2-2.0.4-8.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.
SDL2-2.0.4-8.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.