diff options
author | Thomas White <taw@physics.org> | 2018-06-15 10:17:02 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2018-06-15 10:45:39 +0200 |
commit | b8da358e71ae37864edee8970c26072033541ff4 (patch) | |
tree | 367d6bb449d08beafb7f6d0754db5c03705a8706 /libcrystfel | |
parent | 026f9e96b214a821e3d91b097c8961c90b769c8b (diff) |
Add message about where forkpty has been found
Diffstat (limited to 'libcrystfel')
-rw-r--r-- | libcrystfel/CMakeLists.txt | 8 |
1 files changed, 6 insertions, 2 deletions
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) |