diff --git a/cmake/HalleyProject.cmake b/cmake/HalleyProject.cmake index 4a94f31c46..1bb4c25f51 100644 --- a/cmake/HalleyProject.cmake +++ b/cmake/HalleyProject.cmake @@ -186,7 +186,7 @@ if (USE_OPENGL) add_definitions(-DWITH_OPENGL) find_package(OpenGL REQUIRED) if (${CMAKE_SYSTEM_NAME} MATCHES "Linux") - find_library(X11 REQUIRED) + find_package(X11 REQUIRED) else() set(X11_LIBRARIES "") endif ()