Skip to content

Commit 810eadf

Browse files
committed
doc/man: Do not install the jbmc man pages when jbmc is not installed
1 parent b233b7e commit 810eadf

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

jbmc/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,10 @@ install(
3636
"${CMAKE_CURRENT_SOURCE_DIR}/lib/java-models-library/target/cprover-api.jar"
3737
DESTINATION ${CMAKE_INSTALL_LIBDIR}
3838
)
39+
if(NOT WIN32)
40+
install(
41+
DIRECTORY ${CMAKE_SOURCE_DIR}/doc/man/
42+
DESTINATION ${CMAKE_INSTALL_MANDIR}/man1
43+
FILES_MATCHING
44+
PATTERN "j*")
45+
endif()

src/cbmc/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,8 @@ install(TARGETS cbmc DESTINATION ${CMAKE_INSTALL_BINDIR})
4040
if(NOT WIN32)
4141
install(
4242
DIRECTORY ${CMAKE_SOURCE_DIR}/doc/man/
43-
DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
43+
DESTINATION ${CMAKE_INSTALL_MANDIR}/man1
44+
FILES_MATCHING
45+
PATTERN "c*"
46+
PATTERN "g*")
4447
endif()

0 commit comments

Comments
 (0)