mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-27 01:26:30 +00:00
Use release squish if debug not found. Fixes s3tc compressor tool build.
This commit is contained in:
parent
94338a3742
commit
b5e9dfbc9e
1 changed files with 3 additions and 1 deletions
|
@ -55,10 +55,12 @@ FIND_LIBRARY(SQUISH_LIBRARY_DEBUG
|
||||||
IF(SQUISH_INCLUDE_DIR)
|
IF(SQUISH_INCLUDE_DIR)
|
||||||
IF(SQUISH_LIBRARY_RELEASE)
|
IF(SQUISH_LIBRARY_RELEASE)
|
||||||
SET(SQUISH_FOUND "YES")
|
SET(SQUISH_FOUND "YES")
|
||||||
|
|
||||||
SET(SQUISH_LIBRARIES "optimized;${SQUISH_LIBRARY_RELEASE}")
|
SET(SQUISH_LIBRARIES "optimized;${SQUISH_LIBRARY_RELEASE}")
|
||||||
IF(SQUISH_LIBRARY_DEBUG)
|
IF(SQUISH_LIBRARY_DEBUG)
|
||||||
SET(SQUISH_LIBRARIES "${SQUISH_LIBRARIES};debug;${SQUISH_LIBRARY_DEBUG}")
|
SET(SQUISH_LIBRARIES "${SQUISH_LIBRARIES};debug;${SQUISH_LIBRARY_DEBUG}")
|
||||||
|
ELSE(SQUISH_LIBRARY_DEBUG)
|
||||||
|
SET(SQUISH_LIBRARIES "${SQUISH_LIBRARIES};debug;${SQUISH_LIBRARY_RELEASE}")
|
||||||
|
MESSAGE("Debug Squish NOT found, using the release version!")
|
||||||
ENDIF(SQUISH_LIBRARY_DEBUG)
|
ENDIF(SQUISH_LIBRARY_DEBUG)
|
||||||
ENDIF(SQUISH_LIBRARY_RELEASE)
|
ENDIF(SQUISH_LIBRARY_RELEASE)
|
||||||
ENDIF(SQUISH_INCLUDE_DIR)
|
ENDIF(SQUISH_INCLUDE_DIR)
|
||||||
|
|
Loading…
Reference in a new issue