Open wieczyk opened 8 years ago
The following change worked for me:
diff --git a/CMakeLists.txt b/CMakeLists.txt index 580758a..aa8100f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,8 +24,8 @@ if(WIN32) set(COMMON_LIBS sb7 optimized glfw3 debug glfw3_d ${GLFW_LIBRARIES} ${OPENGL_LIBRARIES}) elseif (UNIX) find_package(PkgConfig REQUIRED) -pkg_check_modules(GLFW REQUIRED glfw3) -set(COMMON_LIBS sb7 glfw3 X11 Xrandr Xinerama Xi Xxf86vm Xcursor GL rt dl) +pkg_check_modules(GLFW REQUIRED glfw) +set(COMMON_LIBS sb7 glfw X11 Xrandr Xinerama Xi Xxf86vm Xcursor GL rt dl) else() set(COMMON_LIBS sb7) endif()
@wieczyk That solution worked for me as well.
On my operating system the name of a glfw library is
libglfw.so.3
, notlibglfw3.so*
.It looks like the
glfw3
string is hardcoded intoCMakeLists.txt
:When I replaced
glfw3
by the${GLFW_LIBRARIES}
it started to work.Could you add this change into repository?