blob: c7c8948cfb7529e72bddbc40c2d48da72f40a96a (
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
39
40
41
42
43
44
45
|
$NetBSD: patch-CMakeLists.txt,v 1.2 2014/04/07 12:15:55 ryoon Exp $
* Enable in-tree build
* Remove rpath handling
--- CMakeLists.txt.orig 2014-04-03 06:08:57.000000000 +0000
+++ CMakeLists.txt
@@ -13,10 +13,6 @@ endif ()
message (STATUS "Project source dir = ${PROJECT_SOURCE_DIR}")
message (STATUS "Project build dir = ${CMAKE_BINARY_DIR}")
-if ("${PROJECT_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}")
- message (FATAL_ERROR "Not allowed to run in-source build!")
-endif ()
-
if (NOT CMAKE_BUILD_TYPE)
set (CMAKE_BUILD_TYPE "Release")
endif ()
@@ -217,26 +213,6 @@ endif()
set (INSTALL_DOCS ON CACHE BOOL "Install documentation")
-
-###########################################################################
-# Rpath handling.
-if (CMAKE_SKIP_RPATH)
- # We need to disallow the user from truly setting CMAKE_SKIP_RPATH, since
- # we want to run the generated executables from the build tree in order to
- # generate the manual page documentation. However, we make sure the
- # install rpath is unset so that the install tree is still free of rpaths
- # for linux packaging purposes.
- set (CMAKE_SKIP_RPATH FALSE)
- unset (CMAKE_INSTALL_RPATH)
-else ()
- set (CMAKE_INSTALL_RPATH "${LIB_INSTALL_DIR}")
- if (NOT IS_ABSOLUTE ${CMAKE_INSTALL_RPATH})
- set (CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${LIB_INSTALL_DIR}")
- endif ()
- set (CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
-endif ()
-
-
if (MSVC)
add_definitions (-D_CRT_SECURE_NO_DEPRECATE)
add_definitions (-D_CRT_SECURE_NO_WARNINGS)
|