Closed as not planned
Description
First of all, congratulations on the release of SDL 3.2.0!
I tried linking my application to SDL3::SDL3-shared via CMake, but encountered some weird behavior on Ubuntu 22.04.
When building SDL3 as follows...
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/home/christoph/build/SDL-3.2.0
make -j 12
make install
... everything works as it should. However, when I instead use the following commands to build SDL3:
cmake -S . -B build
cmake --build build --config Release
cmake --install build --config Release --prefix /home/christoph/build/SDL-3.2.0
... then I encounter the following error when trying to link to SDL3 in my application:
CMake Error in CMakeLists.txt:
IMPORTED_LOCATION not set for imported target "SDL3::SDL3-shared"
Please find the output of diff for the two generated lib/cmake/SDL3/SDL3sharedTargets-release.cmake
files attached. While this is not a huge issue for me (after all, I can just use the former command for building SDL), it might still an issue that should eventually be fixed.
Some system information:
- Ubuntu 22.04
- CMake version: 3.31.3