From 7e98daa32d80ce6a6de3e4ef5a0255ca947a543f Mon Sep 17 00:00:00 2001 From: Artyom Dymchenko Date: Mon, 11 Jan 2016 00:33:54 +0600 Subject: [PATCH] Add math library -lm into paramgrill linker flag; --- contrib/cmake/programs/CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/contrib/cmake/programs/CMakeLists.txt b/contrib/cmake/programs/CMakeLists.txt index abf3b5db..2c036dd9 100644 --- a/contrib/cmake/programs/CMakeLists.txt +++ b/contrib/cmake/programs/CMakeLists.txt @@ -67,8 +67,7 @@ IF (UNIX) TARGET_LINK_LIBRARIES(zbufftest libzstd_static) ADD_EXECUTABLE(paramgrill ${PROGRAMS_DIR}/datagen.c ${PROGRAMS_DIR}/xxhash.c ${PROGRAMS_DIR}/paramgrill.c) - TARGET_LINK_LIBRARIES(paramgrill libzstd_static) - SET_TARGET_PROPERTIES(paramgrill PROPERTIES LINK_FLAGS "-lm") + TARGET_LINK_LIBRARIES(paramgrill libzstd_static m) #m is math library ADD_EXECUTABLE(datagen ${PROGRAMS_DIR}/datagen.c ${PROGRAMS_DIR}/datagencli.c) TARGET_LINK_LIBRARIES(datagen libzstd_static)