From f5b6479de05f95c788f23bc091982ca71eedb9c5 Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Wed, 29 Oct 2025 08:56:16 +0000 Subject: [PATCH] fix cmake git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@502 b9cfdab3-6d41-4d17-bbe4-086880011989 --- examples/CMakeLists.txt | 7 +++++++ examples/basic/CMakeLists.txt | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 6d1b2d5..09eda1a 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -14,6 +14,13 @@ foreach(PATH IN LISTS EXAMPLES_SOURCES) PRIVATE Mw ) + if(NOT CMAKE_SYSTEM_NAME STREQUAL "Windows") + target_link_libraries( + ${TARGET} + PRIVATE + m + ) + endif() endforeach() add_subdirectory(basic) diff --git a/examples/basic/CMakeLists.txt b/examples/basic/CMakeLists.txt index 29abd29..61fe88e 100644 --- a/examples/basic/CMakeLists.txt +++ b/examples/basic/CMakeLists.txt @@ -13,4 +13,11 @@ foreach(PATH IN LISTS EXAMPLES_BASIC_SOURCES) PRIVATE Mw ) + if(NOT CMAKE_SYSTEM_NAME STREQUAL "Windows") + target_link_libraries( + ${TARGET} + PRIVATE + m + ) + endif() endforeach()