aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e0c0851..d909076 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -42,6 +42,12 @@ if (USE_SYSTEM_LIBVTERM)
# add_compile_definitions(VTermStringFragmentNotExists)
add_definitions(-DVTermStringFragmentNotExists)
endif()
+ execute_process(COMMAND grep -c "VTermSelectionMask" "${LIBVTERM_INCLUDE_DIR}/vterm.h" OUTPUT_VARIABLE VTermSelectionMaskExists)
+ if (${VTermSelectionMaskExists} EQUAL "0")
+# add_compile_definitions(VTermStringFragmentNotExists)
+ add_definitions(-DVTermSelectionMaskNotExists)
+ endif()
+
else()
message(STATUS "System libvterm not found: libvterm will be downloaded and compiled as part of the build process")
endif()