FindSDL2.cmake: Add CMAKE_FIND_ROOT_PATH to PATHS

Otherwise, builds that do not rely on standard search paths (e.g.:
Windows builds using a relative 3rdParty/ directory) would not be able
to find SDL2 libraries or header files.


git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9589 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: b9ebe31b7b7de7dad0c7e3dc903e7acb893a3883
Former-commit-id: 09665c149ad79678cb3ac11bc5ed79ed9aea0cdb
This commit is contained in:
xavi92 2024-10-27 07:58:17 +00:00
parent 21807b8820
commit f409ebdecc

View file

@ -19,6 +19,7 @@ SET(SDL2_SEARCH_PATHS
/opt/local # DarwinPorts /opt/local # DarwinPorts
/opt/csw # Blastwave /opt/csw # Blastwave
/opt /opt
${CMAKE_FIND_ROOT_PATH}
) )
FIND_PATH(SDL2_INCLUDE_DIR SDL.h FIND_PATH(SDL2_INCLUDE_DIR SDL.h