chiark / gitweb /
Use CMake module GNUInstallDirs to support platform-specific installation directories...
[nlopt.git] / api / CMakeLists.txt
index 13927c0601c3cf2eef69fcdc1d473c1b7abdc344..ced6ab16b218cf59b388ff777d83182b20c2ee0a 100644 (file)
@@ -1,7 +1,7 @@
 
 # install man
 if (UNIX)
-  install (FILES nlopt.3 nlopt_minimize.3 nlopt_minimize_constrained.3 DESTINATION share/man/man3)
+  install (FILES nlopt.3 nlopt_minimize.3 nlopt_minimize_constrained.3 DESTINATION ${INSTALL_MAN_DIR}/man3)
 endif ()
 
 # generate nlopt.f from nlopt.h enums