From f8181f7598e129a6f3db6cb658cb8723f81e35e3 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Sat, 30 Dec 2017 14:56:46 -1000 Subject: [PATCH] Link math library where needed --- Editor/badging/CMakeLists.txt | 3 ++- Editor/icons/CMakeLists.txt | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Editor/badging/CMakeLists.txt b/Editor/badging/CMakeLists.txt index b00afd0b2..fda04dabb 100644 --- a/Editor/badging/CMakeLists.txt +++ b/Editor/badging/CMakeLists.txt @@ -2,7 +2,8 @@ if(NOT CMAKE_CROSSCOMPILING) include_directories(${LIBPNG_INCLUDE_DIR} ${ZLIB_INCLUDE_DIR}) add_executable(packbadge packbadge.c) -target_link_libraries(packbadge ${PNG_LIB} ${ZLIB_LIBRARIES}) +find_library(M_LIB m) +target_link_libraries(packbadge ${PNG_LIB} ${ZLIB_LIBRARIES} ${M_LIB}) ################## # Package Export # diff --git a/Editor/icons/CMakeLists.txt b/Editor/icons/CMakeLists.txt index 8f73fb150..8283f49da 100644 --- a/Editor/icons/CMakeLists.txt +++ b/Editor/icons/CMakeLists.txt @@ -1,7 +1,8 @@ if(NOT CMAKE_CROSSCOMPILING) include_directories(${LIBPNG_INCLUDE_DIR} ${ZLIB_INCLUDE_DIR}) add_executable(packicons packicons.c) -target_link_libraries(packicons ${PNG_LIB} ${ZLIB_LIBRARIES}) +find_library(M_LIB m) +target_link_libraries(packicons ${PNG_LIB} ${ZLIB_LIBRARIES} ${M_LIB}) ################## # Package Export #