mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 23:57:13 +02:00
make LODEPNG_INCLUDE_DIRS should be dir, not file
This commit is contained in:
parent
04492b28bd
commit
1ba48cf7fe
1 changed files with 5 additions and 2 deletions
|
@ -15,9 +15,12 @@ if (LODEPNG_LIBRARY AND LODEPNG_INCLUDE_DIRS)
|
||||||
# in cache already
|
# in cache already
|
||||||
set(LODEPNG_FOUND TRUE)
|
set(LODEPNG_FOUND TRUE)
|
||||||
else (LODEPNG_LIBRARY AND LODEPNG_INCLUDE_DIRS)
|
else (LODEPNG_LIBRARY AND LODEPNG_INCLUDE_DIRS)
|
||||||
|
|
||||||
|
FIND_PATH(LODEPNG_INCLUDE_DIR "lodepng.h"
|
||||||
|
PATHS ${LODEPNG_ROOT_DIR})
|
||||||
|
|
||||||
set(LODEPNG_INCLUDE_DIRS
|
set(LODEPNG_INCLUDE_DIRS
|
||||||
${LODEPNG_ROOT_DIR}/lodepng.h
|
${LODEPNG_INCLUDE_DIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
set(LODEPNG_LIBRARY
|
set(LODEPNG_LIBRARY
|
||||||
|
|
Loading…
Reference in a new issue