From 588da83012025e011f5daf8a8fc8e9b6bdcce2d8 Mon Sep 17 00:00:00 2001 From: Hugues Delorme Date: Fri, 11 Sep 2015 22:15:11 +0200 Subject: [PATCH] tests: fix link error on Linux target (test_core) --- tests/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 9713ec5..beb3a03 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -63,6 +63,7 @@ endif() # For some targets, GCC and Clang requires -lm if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_CLANG) + target_link_libraries(test_core m) target_link_libraries(test_internal m) target_link_libraries(test_stl m) endif()