diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 3bcdc19f..c5fa659e 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -131,6 +131,9 @@ foreach (example_source ${example_sources}) add_executable(${example_name} ${example_source}) target_link_libraries(${example_name} raylib) + if (NOT WIN32) + target_link_libraries(${example_name} m) + endif() string(REGEX MATCH ".*/.*/" resources_dir ${example_source}) string(APPEND resources_dir "resources")