File: don-t-override-OPENSCADPATH.patch

package info (click to toggle)
openscad 2021.01-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 36,096 kB
  • sloc: cpp: 53,199; sh: 4,384; ansic: 4,382; python: 1,813; yacc: 853; javascript: 762; lex: 417; lisp: 163; xml: 127; makefile: 118
file content (42 lines) | stat: -rw-r--r-- 1,523 bytes parent folder | download | duplicates (3)
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
From: chrysn <chrysn@fsfe.org>
Date: Fri, 7 Mar 2014 09:19:29 +0100
Subject: don't override OPENSCADPATH

the debian tests scripts already set an adaequate OPENSCADPATH; the
overrides in the test scripts would set that wrongly again (because
openscad and mcad are not built in the same tree in debian)

for a cleaner solution, the library path should be respected
unconditionally, removing the necessity for debian to specify a path at
all.
---
 tests/CMakeLists.txt       | 2 +-
 tests/CTestCustom.template | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index b62dd80..4df879e 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -74,7 +74,7 @@ if ( ${DIFFPNG} )
 endif()
 
 # Search for MCAD in correct place
-set(CTEST_ENVIRONMENT "${CTEST_ENVIRONMENT};OPENSCADPATH=${CMAKE_CURRENT_SOURCE_DIR}/../libraries")
+#set(CTEST_ENVIRONMENT "${CTEST_ENVIRONMENT};OPENSCADPATH=${CMAKE_CURRENT_SOURCE_DIR}/../libraries")
 
 # Platform specific settings
 
diff --git a/tests/CTestCustom.template b/tests/CTestCustom.template
index 4d661a4..8464137 100644
--- a/tests/CTestCustom.template
+++ b/tests/CTestCustom.template
@@ -12,7 +12,7 @@
 
 # Part 0. Finding MCAD
 
-set(ENV{OPENSCADPATH} "__cmake_current_source_dir__/../libraries")
+#set(ENV{OPENSCADPATH} "__cmake_current_source_dir__/../libraries")
 
 # Part 1. X11 and Virtual Framebuffer, for headless Linux/BSD systems. 
 # This is not used by Windows or Mac because they have alternate means