summaryrefslogtreecommitdiffstats
path: root/Modules/FindPike.cmake
diff options
context:
space:
mode:
authorChristian Pfeiffer <cpfeiffer@live.de>2017-11-20 15:24:43 (GMT)
committerChristian Pfeiffer <cpfeiffer@live.de>2017-11-20 15:24:43 (GMT)
commit5f382cd8222d0cec719823b56b2237bea7fc015c (patch)
treedd7ad7a117db8eb535ac6aa933347fc7679ff810 /Modules/FindPike.cmake
parent6720807d57f0aca43a2ad5e0c377e7bd82216284 (diff)
downloadCMake-5f382cd8222d0cec719823b56b2237bea7fc015c.zip
CMake-5f382cd8222d0cec719823b56b2237bea7fc015c.tar.gz
CMake-5f382cd8222d0cec719823b56b2237bea7fc015c.tar.bz2
FindPike: Update names and paths
Diffstat (limited to 'Modules/FindPike.cmake')
-rw-r--r--Modules/FindPike.cmake9
1 files changed, 3 insertions, 6 deletions
diff --git a/Modules/FindPike.cmake b/Modules/FindPike.cmake
index dff55a4..ec71c94 100644
--- a/Modules/FindPike.cmake
+++ b/Modules/FindPike.cmake
@@ -16,15 +16,12 @@
# PIKE_INCLUDE_PATH = path to where program.h is found
# PIKE_EXECUTABLE = full path to the pike binary
-file(GLOB PIKE_POSSIBLE_INCLUDE_PATHS
- /usr/include/pike/*
- /usr/local/include/pike/*)
-
find_path(PIKE_INCLUDE_PATH program.h
- ${PIKE_POSSIBLE_INCLUDE_PATHS})
+ ${PIKE_POSSIBLE_INCLUDE_PATHS}
+ PATH_SUFFIXES include/pike8.0/pike include/pike7.8/pike include/pike7.4/pike)
find_program(PIKE_EXECUTABLE
- NAMES pike7.4
+ NAMES pike8.0 pike 7.8 pike7.4
)
mark_as_advanced(