Skip to content

Commit

Permalink
CMake: drop unused options
Browse files Browse the repository at this point in the history
  • Loading branch information
christianparpart committed Nov 19, 2023
1 parent d8d9657 commit e7eb693
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/contour/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
endif()

option(CONTOUR_PERF_STATS "Enables debug printing some performance stats." OFF)
option(CONTOUR_VT_METRICS "Enables collecting and exit-printing some VT usage metrics." OFF)
option(CONTOUR_SCROLLBAR "Enables scrollbar in GUI frontend." ON)

# Widgets is rquired for SystemTrayIcon's fallback implementation
set(QT_COMPONENTS Core Gui Qml Quick QuickControls2 Network Multimedia Widgets)
Expand Down Expand Up @@ -120,18 +118,10 @@ if(CONTOUR_PERF_STATS)
target_compile_definitions(contour PRIVATE CONTOUR_PERF_STATS)
endif()

if(CONTOUR_VT_METRICS)
target_compile_definitions(contour PRIVATE CONTOUR_VT_METRICS)
endif()

if(CONTOUR_FRONTEND_GUI)
target_compile_definitions(contour PRIVATE CONTOUR_FRONTEND_GUI)
endif()

if(CONTOUR_SCROLLBAR)
target_compile_definitions(contour PRIVATE CONTOUR_SCROLLBAR)
endif()

if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
target_compile_definitions(contour PRIVATE CONTOUR_GUI_SOURCE_DIR="${CMAKE_CURRENT_SOURCE_DIR}")
endif()
Expand Down Expand Up @@ -196,7 +186,7 @@ if(CONTOUR_FRONTEND_GUI)
crispy::core
vtrasterizer
)
if(NOT(WIN32) AND NOT(APPLE) AND NOT(CONTOUR_QT_VERSION EQUAL "6"))
if(NOT(WIN32) AND NOT(APPLE))
target_link_libraries(contour Qt5::X11Extras xcb)
endif()
endif()
Expand Down

0 comments on commit e7eb693

Please sign in to comment.