Fix compilation with system angelscript

Upstream names the shared library angelscript_s.
In addition, add more common PATH_SUFFIXES.
This commit is contained in:
hasufell 2015-10-20 16:47:23 +02:00
parent 54a0e50fe3
commit 4e307522d1
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020

View File

@ -14,11 +14,11 @@ FIND_PATH(Angelscript_INCLUDE_DIRS angelscript.h
)
FIND_LIBRARY(Angelscript_LIBRARY
NAMES angelscript
NAMES angelscript angelscript_s
PATHS
/usr/local
/usr
PATH_SUFFIXES lib
PATH_SUFFIXES lib lib64 lib32
)
# handle the QUIETLY and REQUIRED arguments and set ANGELSCRIPT_FOUND to TRUE if