summarylogtreecommitdiffstats
path: root/fix_cmake.patch
blob: 1b35a17a0af1340ee29d53dbf38c4e9df9efb452 (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
46
47
diff --git a/indi-dsi/CMakeLists.txt b/indi-dsi/CMakeLists.txt
index 00eb576a..97c6affb 100644
--- a/indi-dsi/CMakeLists.txt
+++ b/indi-dsi/CMakeLists.txt
@@ -8,9 +8,13 @@ include(GNUInstallDirs)
 IF(APPLE)
 set(FIRMWARE_INSTALL_DIR "/usr/local/lib/indi/DriverSupport/dsi")
 ELSE(APPLE)
+IF(NOT RULES_INSTALL_DIR)
 set(RULES_INSTALL_DIR "/lib/udev/rules.d")
+ENDIF()
+IF(NOT FIRMWARE_INSTALL_DIR)
 set(FIRMWARE_INSTALL_DIR "/lib/firmware")
 ENDIF()
+ENDIF()
 set (DSI_VERSION_MAJOR 0)
 set (DSI_VERSION_MINOR 4)
 
diff --git a/indi-orion-ssg3/CMakeLists.txt b/indi-orion-ssg3/CMakeLists.txt
index 745a02b1..6f974a37 100644
--- a/indi-orion-ssg3/CMakeLists.txt
+++ b/indi-orion-ssg3/CMakeLists.txt
@@ -7,8 +7,10 @@ include(GNUInstallDirs)
 
 IF(APPLE)
 ELSE(APPLE)
+IF(NOT RULES_INSTALL_DIR)
 set(RULES_INSTALL_DIR "/lib/udev/rules.d")
 ENDIF()
+ENDIF()
 set (ORION_SSG3_VERSION_MAJOR 0)
 set (ORION_SSG3_VERSION_MINOR 1)
 
diff --git a/indi-qsi/CMakeLists.txt b/indi-qsi/CMakeLists.txt
index 8a4abba6..24dfde34 100644
--- a/indi-qsi/CMakeLists.txt
+++ b/indi-qsi/CMakeLists.txt
@@ -6,7 +6,9 @@ LIST(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../cmake_modules/")
 include(GNUInstallDirs)
 
 SET(CMAKE_CXX_STANDARD 11)
+IF (NOT RULES_INSTALL_DIR)
 SET(RULES_INSTALL_DIR "/lib/udev/rules.d/")
+ENDIF()
 
 find_package(CFITSIO REQUIRED)
 find_package(INDI REQUIRED)