mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-26 09:06:19 +00:00
Changed: #842 FindSquish finds both release and debug libraries.
This commit is contained in:
parent
8f6385304e
commit
79e37057ba
1 changed files with 24 additions and 1 deletions
|
@ -24,7 +24,7 @@ FIND_PATH(SQUISH_INCLUDE_DIR
|
|||
PATH_SUFFIXES cppunit
|
||||
)
|
||||
|
||||
FIND_LIBRARY(SQUISH_LIBRARY
|
||||
FIND_LIBRARY(SQUISH_LIBRARY_RELEASE
|
||||
squish
|
||||
PATHS
|
||||
/usr/local/lib
|
||||
|
@ -38,6 +38,29 @@ FIND_LIBRARY(SQUISH_LIBRARY
|
|||
/usr/freeware/lib64
|
||||
)
|
||||
|
||||
FIND_LIBRARY(SQUISH_LIBRARY_DEBUG
|
||||
squishd
|
||||
PATHS
|
||||
/usr/local/lib
|
||||
/usr/lib
|
||||
/usr/local/X11R6/lib
|
||||
/usr/X11R6/lib
|
||||
/sw/lib
|
||||
/opt/local/lib
|
||||
/opt/csw/lib
|
||||
/opt/lib
|
||||
/usr/freeware/lib64
|
||||
)
|
||||
|
||||
IF(SQUISH_LIBRARY_RELEASE)
|
||||
SET(STLPORT_FOUND "YES")
|
||||
|
||||
SET(SQUISH_LIBRARY "optimized;${SQUISH_LIBRARY_RELEASE}")
|
||||
IF(SQUISH_LIBRARY_DEBUG)
|
||||
SET(SQUISH_LIBRARY ";debug;${SQUISH_LIBRARY_DEBUG}")
|
||||
ENDIF(SQUISH_LIBRARY_DEBUG)
|
||||
ENDIF(SQUISH_LIBRARY_RELEASE)
|
||||
|
||||
IF(SQUISH_LIBRARY AND SQUISH_INCLUDE_DIR)
|
||||
SET(SQUISH_FOUND "YES")
|
||||
IF(NOT SQUISH_FIND_QUIETLY)
|
||||
|
|
Loading…
Reference in a new issue