--- a/ChangeLog Wed Jan 06 22:41:58 2016 -0600
+++ b/ChangeLog Wed Jan 06 22:54:21 2016 -0600
@@ -1,6 +1,7 @@
* Made the moonscript tests option work
* Added Debian.md to explain how to use the Debian repository
+ * Install man pages in the correct directory on BSD * Made the moonscripts tests not interfer with the lua tests unless they're
--- a/cmake/Modules/help2man.cmake Wed Jan 06 22:41:58 2016 -0600
+++ b/cmake/Modules/help2man.cmake Wed Jan 06 22:54:21 2016 -0600
@@ -63,7 +63,12 @@
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
- install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${_HELP2MAN_OUTPUT} DESTINATION share/man/man${_HELP2MAN_SECTION})
+ set(_HELP2MAN_DIR share/man/) + if(CMAKE_SYSTEM_NAME MATCHES .*BSD.*) + set(_HELP2MAN_DIR man/) + endif(CMAKE_SYSTEM_NAME MATCHES .*BSD.*) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${_HELP2MAN_OUTPUT} DESTINATION ${_HELP2MAN_DIR}man${_HELP2MAN_SECTION})