Line 0
Link Here
|
|
|
1 |
--- CMakeLists.txt.orig 2017-12-18 15:44:24 UTC |
2 |
+++ CMakeLists.txt |
3 |
@@ -1,14 +1,14 @@ |
4 |
PROJECT(osm2pgrouting) |
5 |
CMAKE_MINIMUM_REQUIRED(VERSION 2.6) |
6 |
|
7 |
-if ( ${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR} ) |
8 |
- message(FATAL_ERROR "In-source builds not allowed. |
9 |
- Please make a new directory (called a build directory) and run CMake from there. |
10 |
- You may need to remove CMakeCache.txt." ) |
11 |
-endif() |
12 |
+#if ( ${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR} ) |
13 |
+# message(FATAL_ERROR "In-source builds not allowed. |
14 |
+# Please make a new directory (called a build directory) and run CMake from there. |
15 |
+# You may need to remove CMakeCache.txt." ) |
16 |
+#endif() |
17 |
|
18 |
LIST(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake") |
19 |
-SET(SHARE_DIR "/usr/share/osm2pgrouting") |
20 |
+SET(SHARE_DIR "/usr/local/share/osm2pgrouting") |
21 |
|
22 |
FIND_PACKAGE(PostgreSQL REQUIRED) |
23 |
find_package(LibPQXX REQUIRED) |
24 |
@@ -106,7 +106,7 @@ TARGET_LINK_LIBRARIES(osm2pgrouting |
25 |
) |
26 |
|
27 |
INSTALL(TARGETS osm2pgrouting |
28 |
- RUNTIME DESTINATION "/usr/bin" |
29 |
+ RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin" |
30 |
) |
31 |
|
32 |
if(WIN32) |
33 |
yes |
34 |
native |
35 |
text/plain |