Clean up CMake library specification
The X11 libraries don't need to be specified when doing dynamic linking
This commit is contained in:
parent
1ee740898a
commit
06f31e8b47
3 changed files with 11 additions and 12 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue