forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
freecad-0.14.3702-install-paths.patch
21 lines (19 loc) · 1.12 KB
/
freecad-0.14.3702-install-paths.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- freecad-0.14.3702/CMakeLists.txt
+++ freecad-0.14.3702/CMakeLists.txt
@@ -69,9 +69,15 @@
SET(CMAKE_INSTALL_PREFIX "/usr/lib${LIB_SUFFIX}/freecad" CACHE PATH "Installation root directory")
endif(WIN32)
-SET(CMAKE_INSTALL_DATADIR data CACHE PATH "Output directory for data and resource files")
-SET(CMAKE_INSTALL_INCLUDEDIR include CACHE PATH "Output directory for header files")
-SET(CMAKE_INSTALL_DOCDIR doc CACHE PATH "Output directory for documentation and license files")
+if(NOT CMAKE_INSTALL_DATADIR)
+ SET(CMAKE_INSTALL_DATADIR data CACHE PATH "Output directory for data and resource files")
+endif(NOT CMAKE_INSTALL_DATADIR)
+if(NOT CMAKE_INSTALL_INCLUDEDIR)
+ SET(CMAKE_INSTALL_INCLUDEDIR include CACHE PATH "Output directory for header files")
+endif(NOT CMAKE_INSTALL_INCLUDEDIR)
+if(NOT CMAKE_INSTALL_DOCDIR)
+ SET(CMAKE_INSTALL_DOCDIR doc CACHE PATH "Output directory for documentation and license files")
+endif(NOT CMAKE_INSTALL_DOCDIR)
# Don't set it without manual adaption of LibDir variable in src/App/FreeCADInit.py
SET(CMAKE_INSTALL_LIBDIR lib CACHE PATH "Output directory for libraries")