From 38e6908dc3b5b0fa1556b9a1126307e70ad36939 Mon Sep 17 00:00:00 2001 From: Sara Date: Fri, 21 Apr 2023 00:26:03 +0200 Subject: [PATCH] added -lm arg to CMakeLists --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6610d7d..d5cd436 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,6 +11,8 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/bin/") set(CMAKE_EXPORT_COMPILE_COMMANDS) +set(CMAKE_C_FLAGS "-lm") + find_package(SDL2) find_package(SDL2_image) find_package(SDL2_ttf)