[test-suite] r255239 - cmake: Add -lm flag for all programs in MultiSource
Kristof Beyls via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 10 02:26:44 PST 2015
Author: kbeyls
Date: Thu Dec 10 04:26:44 2015
New Revision: 255239
URL: http://llvm.org/viewvc/llvm-project?rev=255239&view=rev
Log:
cmake: Add -lm flag for all programs in MultiSource
This makes the CMake-based build behave the same way as the Makefile-based
build, and makes the CMake-based build work on linux.
Modified:
test-suite/trunk/cmake/modules/SingleMultiSource.cmake
Modified: test-suite/trunk/cmake/modules/SingleMultiSource.cmake
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/cmake/modules/SingleMultiSource.cmake?rev=255239&r1=255238&r2=255239&view=diff
==============================================================================
--- test-suite/trunk/cmake/modules/SingleMultiSource.cmake (original)
+++ test-suite/trunk/cmake/modules/SingleMultiSource.cmake Thu Dec 10 04:26:44 2015
@@ -180,6 +180,7 @@ macro(llvm_multisource)
append_cflags(${source_exename} CPPFLAGS)
append_cflags(${source_exename} CXXFLAGS)
append_ldflags(${source_exename} LDFLAGS)
+ target_link_libraries(${source_exename} -lm)
llvm_add_test(${PROG} ${source_exename})
add_dependencies(${source_exename} timeit fpcmp)
endif()
More information about the llvm-commits
mailing list