blob: 4e07aa8252fc3cb33bcec200c9ab5d75ba43ff28 (
plain) (
blame)
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
|
--- CMakeLists.txt.orig 2023-11-20 21:47:34.494796000 +0100
+++ CMakeLists.txt 2023-11-20 23:00:36.630907000 +0100
@@ -128,7 +128,7 @@
# Fail early if one of the required packages cannot be found
find_package(OpenGL REQUIRED)
-find_package(Coin REQUIRED)
+find_package(Coin3D REQUIRED)
set(SO${GUI}_PKG_DEPS "Coin")
@@ -290,19 +290,22 @@
endif()
set(CMAKE_REQUIRED_INCLUDES ${OPENGL_INCLUDE_DIR})
-set(CMAKE_REQUIRED_LIBRARIES Coin::Coin ${OPENGL_LIBRARIES})
+set(CMAKE_REQUIRED_LIBRARIES Coin ${OPENGL_LIBRARIES})
-check_include_files(windows.h HAVE_WINDOWS_H)
-if(HAVE_WINDOWS_H)
- check_include_files("windows.h;GL/gl.h" HAVE_GL_GL_H)
- check_include_files("windows.h;GL/glu.h" HAVE_GL_GLU_H)
-elseif(APPLE)
- check_include_files(OpenGL/gl.h HAVE_OPENGL_GL_H)
- check_include_files(OpenGL/glu.h HAVE_OPENGL_GLU_H)
-else()
- check_include_files(GL/gl.h HAVE_GL_GL_H)
- check_include_files(GL/glu.h HAVE_GL_GLU_H)
-endif()
+# that logic below does not work, so we hardcode the result
+set(HAVE_GL_GL_H "1")
+set(HAVE_GL_GLU_H "1")
+# check_include_files(windows.h HAVE_WINDOWS_H)
+# if(HAVE_WINDOWS_H)
+# check_include_files("windows.h;GL/gl.h" HAVE_GL_GL_H)
+# check_include_files("windows.h;GL/glu.h" HAVE_GL_GLU_H)
+# elseif(APPLE)
+# check_include_files(OpenGL/gl.h HAVE_OPENGL_GL_H)
+# check_include_files(OpenGL/glu.h HAVE_OPENGL_GLU_H)
+# else()
+# check_include_file(GL/gl.h HAVE_GL_GL_H)
+# check_include_file(GL/glu.h HAVE_GL_GLU_H)
+# endif()
check_include_files(dlfcn.h HAVE_DLFCN_H)
check_include_files(inttypes.h HAVE_INTTYPES_H)
|