Link math lib for clang ubuntu

This commit is contained in:
Nic Barker 2025-05-21 17:44:36 +12:00
parent b2ffb2f0e5
commit 179ea4bffc

View file

@ -6,6 +6,9 @@ add_executable(clay_examples_terminal main.c)
target_compile_options(clay_examples_terminal PUBLIC)
target_include_directories(clay_examples_terminal PUBLIC .)
if (CMAKE_SYSTEM_NAME STREQUAL Linux)
target_link_libraries(clay_examples_terminal INTERFACE m)
endif()
target_link_libraries(clay_examples_terminal PUBLIC ${CURSES_LIBRARY})
set(CMAKE_CXX_FLAGS_DEBUG "-Wall -Werror -DCLAY_DEBUG")