blob: 319020222e53226d91038ecbb063d46754cbfa03 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
diff --git a/cmake/modules/SearchInstalledSoftware.cmake b/cmake/modules/SearchInstalledSoftware.cmake
index a68c462eb3..1e82e57241 100644
--- a/cmake/modules/SearchInstalledSoftware.cmake
+++ b/cmake/modules/SearchInstalledSoftware.cmake
@@ -499,7 +499,7 @@ if(opengl)
endif()
#---Check for gl2ps ------------------------------------------------------------------
-if(NOT builtin_gl2ps)
+if(gl2ps AND NOT builtin_gl2ps)
message(STATUS "Looking for gl2ps")
find_Package(gl2ps)
if(NOT GL2PS_FOUND)
@@ -999,7 +999,7 @@ if(globus)
endif()
#---Check for ftgl if needed----------------------------------------------------------
-if(NOT builtin_ftgl)
+if(ftgl AND NOT builtin_ftgl)
find_package(FTGL)
if(NOT FTGL_FOUND)
if(fail-on-missing)
|