Skip to content

Commit

Permalink
update pkg-config
Browse files Browse the repository at this point in the history
  • Loading branch information
MoAlyousef committed Sep 20, 2023
1 parent c943c10 commit dc2ba7f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -196,17 +196,15 @@ include(GNUInstallDirs)

if(UNIX AND NOT APPLE)
string(APPEND pc_req_private " x11 xinerama xcursor xfixes xext xrender xft fontconfig cairo pango pangoxft pangocairo gobject-2.0 wayland-client wayland-cursor xkbcommon dbus-1")
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
string(APPEND pc_libs_private " -lcxxrt")
else()
string(APPEND pc_libs_private " -lsupc++ -pthread")
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
string(APPEND pc_libs_private " -pthread")
endif()
elseif(APPLE)
string(APPEND pc_libs_private " -framework Cocoa -framework Carbon -framework ApplicationServices -framework OpenGL -lc++abi")
elseif(WIN32)
string(APPEND pc_libs_private " -lgdiplus -lws2_32 -lcomctl32 -lgdi32 -loleaut32 -lole32 -luuid -lshell32 -ladvapi32 -lcomdlg32 -lwinspool -luser32 -lkernel32 -lodbc32")
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
string(APPEND pc_libs_private " -lsupc++ -lgcc -pthread")
string(APPEND pc_libs_private " -lgcc -pthread")
endif()
endif()

Expand Down

0 comments on commit dc2ba7f

Please sign in to comment.