We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9f67f1 commit f4971aaCopy full SHA for f4971aa
1 file changed
source/examples/cubescape-qt/CMakeLists.txt
@@ -32,6 +32,12 @@ if (NOT Qt5Core_FOUND)
32
return()
33
endif()
34
35
+# On macOS qt5 fails to link against opengl
36
+if(APPLE)
37
+ find_package(OpenGL REQUIRED)
38
+endif()
39
+
40
41
if (NOT cpplocate_FOUND)
42
message(STATUS "Example ${target}: using static data path (cpplocate not found)")
43
else()
@@ -115,7 +121,8 @@ target_link_libraries(${target}
115
121
Qt5::Core
116
122
Qt5::Gui
117
123
Qt5::Widgets
118
- $<$<BOOL:${cpplocate_FOUND}>:cpplocate::cpplocate>
124
+ "$<$<BOOL:${cpplocate_FOUND}>:cpplocate::cpplocate>"
125
+ "$<$<PLATFORM_ID:Darwin>:${OPENGL_gl_LIBRARY}>"
119
126
)
120
127
128
0 commit comments