aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2021-11-02 16:25:48 +0100
committerPřemysl Eric Janouch <p@janouch.name>2021-11-02 16:29:30 +0100
commit66a3b3e259e8d46a046b3b4b9a9253dd3e2a394e (patch)
tree2a75db95de20dec70e1aec41df2feb6d6ac542e0
parent3ff0f117f9344a2bbfa352bfa4fb9514d7ce6979 (diff)
downloadlogdiag-66a3b3e259e8d46a046b3b4b9a9253dd3e2a394e.tar.gz
logdiag-66a3b3e259e8d46a046b3b4b9a9253dd3e2a394e.tar.xz
logdiag-66a3b3e259e8d46a046b3b4b9a9253dd3e2a394e.zip
CMakeLists.txt: fix macOS build
GTK+ doesn't seem to be working much on macOS/brew/M1, though.
-rw-r--r--CMakeLists.txt5
1 files changed, 2 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c37b063..e14bd8b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -68,9 +68,11 @@ endif ()
# Dependencies
find_package (PkgConfig REQUIRED)
pkg_check_modules (GTK3 REQUIRED gtk+-3.0 json-glib-1.0)
+link_directories (${GTK3_LIBRARY_DIRS})
if (NOT WIN32)
pkg_search_module (Lua REQUIRED lua>=5.2 lua5.3 lua-5.3 lua5.2 lua-5.2)
+ link_directories (${Lua_LIBRARY_DIRS})
else ()
# For whatever reason this now seems to be required
set (LUA_INCLUDE_DIR "${WIN32_DEPENDS_PATH}/include")
@@ -83,9 +85,6 @@ else ()
set (Lua_INCLUDE_DIRS ${LUA_INCLUDE_DIR})
endif ()
-# This actually fucks up MinGW cross-compilation if omitted
-link_directories (${GTK3_LIBRARY_DIRS})
-
# Localization
find_package (Gettext REQUIRED)
file (GLOB project_PO_FILES ${PROJECT_SOURCE_DIR}/po/*.po)