blob: c75f80a82f3e04392b71a47dd93b52fbda29dbb0 (
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
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 20eaf53..b81f056 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -32,20 +32,7 @@ include(CheckIncludeFiles)
include(CheckTypeSize)
# location for install or package
-if (CMAKE_SYSTEM_NAME MATCHES "Darwin")
- include(GNUInstallDirs)
- set(CMAKE_INSTALL_RPATH "@executable_path")
-
-elseif (CMAKE_SYSTEM_NAME MATCHES "(Linux|OpenBSD|FreeBSD|NetBSD|DragonFly)")
- include(GNUInstallDirs)
- set(CMAKE_INSTALL_RPATH "\$ORIGIN")
-
-elseif (CMAKE_SYSTEM_NAME MATCHES "Windows")
- set(CMAKE_INSTALL_BINDIR bin)
- set(CMAKE_INSTALL_LIBDIR lib)
- set(CMAKE_INSTALL_INCLUDEDIR include)
-
-endif()
+include(GNUInstallDirs)
set(PACKAGE "cs_libguarded")
set(PACKAGE_NAME "CsLibGuarded")
@@ -98,13 +85,7 @@ else()
endif()
# destination for cmake export files
-if (CMAKE_SYSTEM_NAME MATCHES "Windows")
- set(PKG_PREFIX "cmake/CsLibGuarded")
-
-else()
- set(PKG_PREFIX "${CMAKE_INSTALL_LIBDIR}/cmake/CsLibGuarded")
-
-endif()
+set(PKG_PREFIX "${CMAKE_INSTALL_LIBDIR}/cmake/CsLibGuarded")
# catch2 set up
if(BUILD_TESTS)
|