From b8da358e71ae37864edee8970c26072033541ff4 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 15 Jun 2018 10:17:02 +0200 Subject: Add message about where forkpty has been found --- libcrystfel/CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'libcrystfel/CMakeLists.txt') diff --git a/libcrystfel/CMakeLists.txt b/libcrystfel/CMakeLists.txt index 82c29446..2ca4e7e2 100644 --- a/libcrystfel/CMakeLists.txt +++ b/libcrystfel/CMakeLists.txt @@ -27,8 +27,12 @@ set(CMAKE_REQUIRED_LIBRARIES "-lutil") check_symbol_exists(forkpty "pty.h" HAVE_FORKPTY_PTY_H) check_symbol_exists(forkpty "util.h" HAVE_FORKPTY_UTIL_H) unset(CMAKE_REQUIRED_LIBRARIES) -if ( NOT(HAVE_FORKPTY_PTY_H OR HAVE_FORKPTY_UTIL_H) ) - message(FATAL_ERROR "Couldn't find forkpty()") +if(HAVE_FORKPTY_PTY_H) + message(STATUS "Found forkpty() in pty.h") +elseif(HAVE_FORKPTY_UTIL_H) + message(STATUS "Found forkpty() in util.h") +else() + message(SEND_ERROR "Couldn't find forkpty()") endif() configure_file(config.h.cmake.in config.h) -- cgit v1.2.3