|
|
|
@@ -14,6 +14,7 @@ set(BUILD_TESTS ON CACHE BOOL "Enable building test programs.")
|
|
|
|
set(KTE_FONT_SIZE "18.0" CACHE STRING "Default font size for GUI")
|
|
|
|
set(KTE_FONT_SIZE "18.0" CACHE STRING "Default font size for GUI")
|
|
|
|
option(KTE_UNDO_DEBUG "Enable undo instrumentation logs" OFF)
|
|
|
|
option(KTE_UNDO_DEBUG "Enable undo instrumentation logs" OFF)
|
|
|
|
option(KTE_ENABLE_TREESITTER "Enable optional Tree-sitter highlighter adapter" OFF)
|
|
|
|
option(KTE_ENABLE_TREESITTER "Enable optional Tree-sitter highlighter adapter" OFF)
|
|
|
|
|
|
|
|
option(KTE_STATIC_LINK "Enable static linking on Linux" ON)
|
|
|
|
|
|
|
|
|
|
|
|
# Optionally enable AddressSanitizer (ASan)
|
|
|
|
# Optionally enable AddressSanitizer (ASan)
|
|
|
|
option(ENABLE_ASAN "Enable AddressSanitizer for builds" OFF)
|
|
|
|
option(ENABLE_ASAN "Enable AddressSanitizer for builds" OFF)
|
|
|
|
@@ -285,7 +286,7 @@ endif ()
|
|
|
|
target_link_libraries(kte ${CURSES_LIBRARIES})
|
|
|
|
target_link_libraries(kte ${CURSES_LIBRARIES})
|
|
|
|
|
|
|
|
|
|
|
|
# Static linking on Linux only (macOS does not support static linking of system libraries)
|
|
|
|
# Static linking on Linux only (macOS does not support static linking of system libraries)
|
|
|
|
if (NOT APPLE)
|
|
|
|
if (NOT APPLE AND KTE_STATIC_LINK)
|
|
|
|
target_link_options(kte PRIVATE -static)
|
|
|
|
target_link_options(kte PRIVATE -static)
|
|
|
|
endif ()
|
|
|
|
endif ()
|
|
|
|
|
|
|
|
|
|
|
|
@@ -375,7 +376,7 @@ if (BUILD_TESTS)
|
|
|
|
endif ()
|
|
|
|
endif ()
|
|
|
|
|
|
|
|
|
|
|
|
# Static linking on Linux only (macOS does not support static linking of system libraries)
|
|
|
|
# Static linking on Linux only (macOS does not support static linking of system libraries)
|
|
|
|
if (NOT APPLE)
|
|
|
|
if (NOT APPLE AND KTE_STATIC_LINK)
|
|
|
|
target_link_options(kte_tests PRIVATE -static)
|
|
|
|
target_link_options(kte_tests PRIVATE -static)
|
|
|
|
endif ()
|
|
|
|
endif ()
|
|
|
|
endif ()
|
|
|
|
endif ()
|
|
|
|
@@ -418,7 +419,7 @@ if (BUILD_GUI)
|
|
|
|
endif ()
|
|
|
|
endif ()
|
|
|
|
|
|
|
|
|
|
|
|
# Static linking on Linux only (macOS does not support static linking of system libraries)
|
|
|
|
# Static linking on Linux only (macOS does not support static linking of system libraries)
|
|
|
|
if (NOT APPLE)
|
|
|
|
if (NOT APPLE AND KTE_STATIC_LINK)
|
|
|
|
target_link_options(kge PRIVATE -static)
|
|
|
|
target_link_options(kge PRIVATE -static)
|
|
|
|
endif ()
|
|
|
|
endif ()
|
|
|
|
|
|
|
|
|
|
|
|
|