aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2021-11-02 16:57:18 +0100
committerPřemysl Eric Janouch <p@janouch.name>2021-11-02 17:04:37 +0100
commitb36f185426be3ac0bfb942fa4a52528a8d70a61a (patch)
treeaed594826c18582472ab06e3c706ee1712260647 /CMakeLists.txt
parent726ecd83ac6da35347be547b42588eb9f3db5070 (diff)
downloadtdv-b36f185426be3ac0bfb942fa4a52528a8d70a61a.tar.gz
tdv-b36f185426be3ac0bfb942fa4a52528a8d70a61a.tar.xz
tdv-b36f185426be3ac0bfb942fa4a52528a8d70a61a.zip
Fix various macOS-related/found issues
Even though this software isn't very useful on that system either, due to its lack of PRIMARY.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt11
1 files changed, 8 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ddd9cfc..1d1199b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -66,7 +66,6 @@ endif ()
find_package (Termo QUIET NO_MODULE)
option (USE_SYSTEM_TERMO
"Don't compile our own termo library, use the system one" ${Termo_FOUND})
-
if (USE_SYSTEM_TERMO)
if (NOT Termo_FOUND)
message (FATAL_ERROR "System termo library not found")
@@ -88,7 +87,6 @@ endif ()
pkg_check_modules (xcb xcb xcb-xfixes)
option (WITH_X11 "Compile with X11 selection support using XCB" ${xcb_FOUND})
-
if (WITH_X11)
if (NOT xcb_FOUND)
message (FATAL_ERROR "XCB not found")
@@ -100,8 +98,15 @@ endif ()
pkg_check_modules (gtk gtk+-3.0)
option (WITH_GUI "Build an alternative GTK+ UI" ${gtk_FOUND})
+if (WITH_GUI)
+ if (NOT gtk_FOUND)
+ message (FATAL_ERROR "GTK+ not found")
+ endif ()
+
+ link_directories (${gtk_LIBRARY_DIRS})
+endif ()
-link_directories (${dependencies_LIBRARY_DIRS})
+link_directories (${dependencies_LIBRARY_DIRS} ${icu_LIBRARY_DIRS})
include_directories (${ZLIB_INCLUDE_DIRS} ${icu_INCLUDE_DIRS}
${dependencies_INCLUDE_DIRS} ${Ncursesw_INCLUDE_DIRS}
${Termo_INCLUDE_DIRS})