Skip to content

Commit a27486a

Browse files
committed
Fix CMakeLists.txt
1 parent d491190 commit a27486a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ set(EXCLUDED_MANPAGES "" CACHE STRING "Man pages that are not installed")
1515
list(LENGTH EXCLUDED_MANPAGES EXCLUDED_MANPAGES_SIZE)
1616
if (EXCLUDED_MANPAGES_SIZE GREATER 0)
1717
message(STATUS "Will exclude ${EXCLUDED_MANPAGES_SIZE} man pages:")
18-
foreach (EXCLUDED_MANPAGE EXCLUDED_MANPAGES)
18+
foreach (EXCLUDED_MANPAGE ${EXCLUDED_MANPAGES})
1919
message(STATUS " * ${EXCLUDED_MANPAGE}")
2020
endforeach ()
2121
set(FILTER_EXCLUDED_MANPAGES 1)
@@ -28,7 +28,7 @@ if (ENABLE_APPEND_COLOPHON)
2828
endif (ENABLE_APPEND_COLOPHON)
2929

3030
find_program(opencc opencc HINTS "/usr/bin/")
31-
if (opencc_NOTFOUND)
31+
if (NOT opencc)
3232
message(FATAL_ERROR "OpenCC not detected on your system")
3333
endif ()
3434

0 commit comments

Comments
 (0)