summaryrefslogtreecommitdiff
path: root/Modules/FindCurses.cmake
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2020-01-20 11:48:33 -0500
committerBen Boeckel <ben.boeckel@kitware.com>2020-01-20 15:49:29 -0500
commit74f659f1f2903a137fc50aa3537e0bac927d3f6a (patch)
treef119c357b6305df45d2b4710fa6ca2badb5c334a /Modules/FindCurses.cmake
parent7e2ae4e96d4260688708c209e23f742595a29ec3 (diff)
downloadcmake-74f659f1f2903a137fc50aa3537e0bac927d3f6a.tar.gz
FindCurses: only mark CURSES_EXTRA_LIBRARY when it is used
Diffstat (limited to 'Modules/FindCurses.cmake')
-rw-r--r--Modules/FindCurses.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/Modules/FindCurses.cmake b/Modules/FindCurses.cmake
index e3e7273be7..ba56078a50 100644
--- a/Modules/FindCurses.cmake
+++ b/Modules/FindCurses.cmake
@@ -159,6 +159,10 @@ if(CURSES_USE_NCURSES)
if(NOT CURSES_NCURSES_HAS_CBREAK)
find_library(CURSES_EXTRA_LIBRARY "${CURSES_TINFO_LIBRARY_NAME}" HINTS "${_cursesLibDir}")
find_library(CURSES_EXTRA_LIBRARY "${CURSES_TINFO_LIBRARY_NAME}" )
+
+ mark_as_advanced(
+ CURSES_EXTRA_LIBRARY
+ )
endif()
else()
get_filename_component(_cursesLibDir "${CURSES_CURSES_LIBRARY}" PATH)
@@ -262,6 +266,5 @@ mark_as_advanced(
CURSES_INCLUDE_PATH
CURSES_CURSES_LIBRARY
CURSES_NCURSES_LIBRARY
- CURSES_EXTRA_LIBRARY
CURSES_FORM_LIBRARY
)