blob: 024d2f7138f0ecd8d20eebc23512c643c0c33117 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -23,6 +23,7 @@
#
project(OpenSubdiv)
+include(GNUInstallDirs)
cmake_minimum_required(VERSION 2.8.6)
@@ -63,15 +64,15 @@ if (NOT DEFINED CMAKE_INSTALL_PREFIX)
endif()
if (NOT DEFINED CMAKE_INCDIR_BASE)
- set( CMAKE_INCDIR_BASE include/opensubdiv )
+ set( CMAKE_INCDIR_BASE ${CMAKE_INSTALL_INCLUDEDIR}/opensubdiv )
endif()
if (NOT DEFINED CMAKE_BINDIR_BASE)
- set( CMAKE_BINDIR_BASE bin )
+ set( CMAKE_BINDIR_BASE ${CMAKE_INSTALL_BINDIR} )
endif()
if (NOT DEFINED CMAKE_LIBDIR_BASE)
- set( CMAKE_LIBDIR_BASE lib )
+ set( CMAKE_LIBDIR_BASE ${CMAKE_INSTALL_LIBDIR} )
endif()
if (NOT DEFINED CMAKE_FRAMEWORKDIR_BASE)
@@ -83,7 +84,7 @@ if (NOT DEFINED CMAKE_PLUGINDIR_BASE)
endif()
if (NOT DEFINED CMAKE_DOCDIR_BASE)
- set( CMAKE_DOCDIR_BASE share/doc/opensubdiv )
+ set( CMAKE_DOCDIR_BASE ${CMAKE_INSTALL_DOCDIR} )
else()
if (IS_ABSOLUTE ${CMAKE_DOCDIR_BASE})
set( CMAKE_DOCDIR_BASE "${CMAKE_DOCDIR_BASE}" )
|