diff options
author | Christoph GrĂ¼ninger <foss@grueninger.de> | 2019-08-11 21:04:41 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-08-20 14:45:32 (GMT) |
commit | 66654135c1bcd5548df2ad15283d250621e2f28e (patch) | |
tree | 640eaf48276ad140dd3eb3725b5362bf27aa720d /Source/CursesDialog | |
parent | 70c56b856c2341837613a4f5e55b32b857a02456 (diff) | |
download | CMake-66654135c1bcd5548df2ad15283d250621e2f28e.zip CMake-66654135c1bcd5548df2ad15283d250621e2f28e.tar.gz CMake-66654135c1bcd5548df2ad15283d250621e2f28e.tar.bz2 |
ccmake: Fix form.h include with CMAKE_USE_SYSTEM_FORM
Some distributions have form.h in ncurses/ next to the ncurses.h found
by FindCurses.
Fixes: #19589
Diffstat (limited to 'Source/CursesDialog')
-rw-r--r-- | Source/CursesDialog/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/CursesDialog/CMakeLists.txt b/Source/CursesDialog/CMakeLists.txt index c51b0dd..270b07e 100644 --- a/Source/CursesDialog/CMakeLists.txt +++ b/Source/CursesDialog/CMakeLists.txt @@ -23,6 +23,10 @@ include_directories(${CURSES_INCLUDE_PATH}) add_executable(ccmake ${CURSES_SRCS} ) target_link_libraries(ccmake CMakeLib) if(CMAKE_USE_SYSTEM_FORM) + find_path(CURSES_FORM_INCLUDE_DIR NAMES form.h HINTS ${CURSES_INCLUDE_PATH} ${CURSES_INCLUDE_PATH}/ncurses) + if(CURSES_FORM_INCLUDE_DIR) + target_include_directories(ccmake PRIVATE ${CURSES_FORM_INCLUDE_DIR}) + endif() target_link_libraries(ccmake ${CURSES_FORM_LIBRARY} ${CURSES_LIBRARY} |