aboutsummaryrefslogtreecommitdiff
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2016-03-14 22:27:06 +0100
committerAris Adamantiadis <aris@0xbadc0de.be>2016-03-14 22:27:06 +0100
commit50276273448d042084ee44bc0cfae152c8abc110 (patch)
treeb166a4571a0d916e0931bc9322a994ffbd988b41 /ConfigureChecks.cmake
parent4d43fbfb50710055352c4fda812b6dc98143d336 (diff)
downloadlibssh-50276273448d042084ee44bc0cfae152c8abc110.tar.gz
libssh-50276273448d042084ee44bc0cfae152c8abc110.tar.xz
libssh-50276273448d042084ee44bc0cfae152c8abc110.zip
cmake: detect argp.h on osx
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 9109d8fc..3d23bfd6 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -47,7 +47,11 @@ int main(void){ return 0; }
endif(CMAKE_COMPILER_IS_GNUCC AND NOT MINGW AND NOT OS2)
# HEADER FILES
+set(CMAKE_REQUIRED_INCLUDES_SAVE ${CMAKE_REQUIRED_INCLUDES})
+set(CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES} ${ARGP_INCLUDE_DIRS})
check_include_file(argp.h HAVE_ARGP_H)
+set(CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES_SAVE})
+
check_include_file(pty.h HAVE_PTY_H)
check_include_file(utmp.h HAVE_UTMP_H)
check_include_file(termios.h HAVE_TERMIOS_H)