From 5a6fc4c9eb4d2ac325e3d3fe11a0e9d1de35dc13 Mon Sep 17 00:00:00 2001 From: Robert Date: Mon, 18 May 2020 19:45:55 +0200 Subject: [PATCH] corrected previous commit --- SDLU/CMakeLists.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/SDLU/CMakeLists.txt b/SDLU/CMakeLists.txt index 68c2d14..4995a20 100644 --- a/SDLU/CMakeLists.txt +++ b/SDLU/CMakeLists.txt @@ -6,10 +6,6 @@ add_library(${PNAME} set_property(TARGET ${PNAME} PROPERTY CXX_STANDARD 17) -if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") - add_link_options(-lm) -endif() - target_include_directories(${PNAME} PRIVATE ${PROJECT_SOURCE_DIR}/3rdparty/SDL/include ${CMAKE_CURRENT_LIST_DIR} @@ -19,5 +15,10 @@ target_link_libraries(${PNAME} PRIVATE SDL2 ) + +if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") + target_link_libraries(${PNAME} m) +endif() + add_subdirectory(structures) add_subdirectory(graphics) \ No newline at end of file