mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-22 11:22:18 -04:00
cmake: add CMAKE_FIND_PACKAGE_PREFER_CONFIG option
This commit is contained in:
parent
c1009387ac
commit
6cb97ddf1e
@ -67,7 +67,8 @@ check_symbol_exists(strsignal "string.h" HAVE_STRSIGNAL)
|
||||
check_symbol_exists(strcasecmp "strings.h" HAVE_DECL_STRCASECMP)
|
||||
check_symbol_exists(strncasecmp "strings.h" HAVE_DECL_STRNCASECMP)
|
||||
|
||||
set(CMAKE_FIND_PACKAGE_PREFER_CONFIG TRUE)
|
||||
option(CMAKE_FIND_PACKAGE_PREFER_CONFIG
|
||||
"Lookup package config files before using find modules" ON)
|
||||
|
||||
# Library requirements.
|
||||
find_package(SDL2 2.0.7 REQUIRED)
|
||||
|
Loading…
x
Reference in New Issue
Block a user