Clean up CMake library specification

The X11 libraries don't need to be specified when doing dynamic linking
This commit is contained in:
Yuri Kunde Schlesner 2014-12-13 20:02:22 -02:00
parent 1ee740898a
commit 06f31e8b47
3 changed files with 11 additions and 12 deletions

View file

@ -6,6 +6,7 @@ project(citra)
if (NOT MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wno-attributes")
add_definitions(-pthread)
else()
# Silence deprecation warnings
add_definitions(/D_CRT_SECURE_NO_WARNINGS)
@ -75,10 +76,6 @@ if (ENABLE_GLFW)
set(GLFW_LIBRARIES glfw3)
else()
if (NOT APPLE)
find_package(X11 REQUIRED)
endif()
find_package(PkgConfig REQUIRED)
pkg_search_module(GLFW REQUIRED glfw3)
endif()