summaryrefslogtreecommitdiffstats
path: root/Modules/FindPNG.cmake
diff options
context:
space:
mode:
authorChristian Pfeiffer <cpfeiffer@live.de>2017-11-20 15:29:25 (GMT)
committerChristian Pfeiffer <cpfeiffer@live.de>2017-11-20 15:29:25 (GMT)
commita62d50ec56087bc6364c2e6c097b312167839957 (patch)
treeccd039133f878c223a4debd63e5b369ab87dc214 /Modules/FindPNG.cmake
parentfd56d6a8e637750cbf2e038bde12164962c66bc4 (diff)
downloadCMake-a62d50ec56087bc6364c2e6c097b312167839957.zip
CMake-a62d50ec56087bc6364c2e6c097b312167839957.tar.gz
CMake-a62d50ec56087bc6364c2e6c097b312167839957.tar.bz2
Modules: Replace coded PATHS with PATH_SUFFIXES
Some modules assume that `/usr` and `/usr/local` are the only `CMAKE_PREFIX_PATH` entries and explicitly enumerate all paths instead of using `PATH_SUFFIXES` and relying on the dynamic set of prefix paths. This commit attempts to rectify that behavior.
Diffstat (limited to 'Modules/FindPNG.cmake')
-rw-r--r--Modules/FindPNG.cmake4
1 files changed, 1 insertions, 3 deletions
diff --git a/Modules/FindPNG.cmake b/Modules/FindPNG.cmake
index dceb6bc..936f01f 100644
--- a/Modules/FindPNG.cmake
+++ b/Modules/FindPNG.cmake
@@ -51,9 +51,7 @@ endif()
find_package(ZLIB ${_FIND_ZLIB_ARG})
if(ZLIB_FOUND)
- find_path(PNG_PNG_INCLUDE_DIR png.h
- /usr/local/include/libpng # OpenBSD
- )
+ find_path(PNG_PNG_INCLUDE_DIR png.h PATH_SUFFIXES include/libpng)
list(APPEND PNG_NAMES png libpng)
unset(PNG_NAMES_DEBUG)