diff options
author | Brad King <brad.king@kitware.com> | 2019-08-21 15:54:24 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-08-21 15:54:48 (GMT) |
commit | bd3f088abe6488dbc84197bf695a74bb8e8ddda4 (patch) | |
tree | 1642fd8d1da4c72b0aeb352da8f2f9087789c6f4 /Source | |
parent | 3402e6cf82c9ef1258530bff8cd4f2be01839d32 (diff) | |
parent | 66654135c1bcd5548df2ad15283d250621e2f28e (diff) | |
download | CMake-bd3f088abe6488dbc84197bf695a74bb8e8ddda4.zip CMake-bd3f088abe6488dbc84197bf695a74bb8e8ddda4.tar.gz CMake-bd3f088abe6488dbc84197bf695a74bb8e8ddda4.tar.bz2 |
Merge topic 'ccmake-find-system-form-header'
66654135c1 ccmake: Fix form.h include with CMAKE_USE_SYSTEM_FORM
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3683
Diffstat (limited to 'Source')
-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} |