File: fix-install.patch

package info (click to toggle)
libuemf 0.2.8%2Bds-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,888 kB
  • sloc: ansic: 34,992; sh: 64; makefile: 4
file content (22 lines) | stat: -rw-r--r-- 929 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: Use proper cmake variables to control install locations.
Author: Andrius Merkys <merkys@debian.org>
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -8,7 +8,7 @@
 # Commented out line below installs to current directory
 # Pick one or the other or edit to set target.
 #SET(CMAKE_INSTALL_PREFIX          /usr/local                  )
-SET(CMAKE_INSTALL_PREFIX           ..                          )
+#SET(CMAKE_INSTALL_PREFIX           ..                          )
 
 SET(FS8 -std=c99 -pedantic -Wall -fPIC -c)
 SET(FS9 -Wall -std=c99 -pedantic -O3)
@@ -63,7 +63,7 @@
                 cutemf  pmfdual2single reademf readwmf 
                 testbed_emf testbed_pmf testbed_wmf test_mapmodes_emf
         RUNTIME DESTINATION bin
-        LIBRARY DESTINATION lib)
+        LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
 
 FILE(GLOB hfiles "${CMAKE_CURRENT_SOURCE_DIR}/*.h")
 INSTALL(FILES ${hfiles} DESTINATION include)