forked from speed-dreams/speed-dreams-code
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:
parent
21807b8820
commit
f409ebdecc
1 changed files with 1 additions and 0 deletions
|
@ -19,6 +19,7 @@ SET(SDL2_SEARCH_PATHS
|
|||
/opt/local # DarwinPorts
|
||||
/opt/csw # Blastwave
|
||||
/opt
|
||||
${CMAKE_FIND_ROOT_PATH}
|
||||
)
|
||||
|
||||
FIND_PATH(SDL2_INCLUDE_DIR SDL.h
|
||||
|
|
Loading…
Reference in a new issue