ENH: fix bug where sharedforward would not work if there was a space in the path...
[cmake.git] / Modules / FindPike.cmake
blob12985e83549134ed04df514b9dc10adb5df5beed
1 # - Find Pike
2 # This module finds if PIKE is installed and determines where the include files
3 # and libraries are. It also determines what the name of the library is. This
4 # code sets the following variables:
6 #  PIKE_INCLUDE_PATH       = path to where program.h is found
7 #  PIKE_EXECUTABLE         = full path to the pike binary
10 FILE(GLOB PIKE_POSSIBLE_INCLUDE_PATHS
11   /usr/include/pike/*
12   /usr/local/include/pike/*)
14 FIND_PATH(PIKE_INCLUDE_PATH program.h
15   ${PIKE_POSSIBLE_INCLUDE_PATHS})
17 FIND_PROGRAM(PIKE_EXECUTABLE
18   NAMES pike7.4
19   )
21 MARK_AS_ADVANCED(
22   PIKE_EXECUTABLE
23   PIKE_INCLUDE_PATH
24   )