You are viewing a plain text version of this content. The canonical link for it is here.
Posted to site-cvs@tcl.apache.org by pe...@apache.org on 2017/08/05 13:47:15 UTC
svn commit: r1804189 -
/tcl/rivet/branches/cmake/cmake/cmake_extra_modules/checks.cmake
Author: petasis
Date: Sat Aug 5 13:47:15 2017
New Revision: 1804189
URL: http://svn.apache.org/viewvc?rev=1804189&view=rev
Log:
Fix for round() under UNIX
Modified:
tcl/rivet/branches/cmake/cmake/cmake_extra_modules/checks.cmake
Modified: tcl/rivet/branches/cmake/cmake/cmake_extra_modules/checks.cmake
URL: http://svn.apache.org/viewvc/tcl/rivet/branches/cmake/cmake/cmake_extra_modules/checks.cmake?rev=1804189&r1=1804188&r2=1804189&view=diff
==============================================================================
--- tcl/rivet/branches/cmake/cmake/cmake_extra_modules/checks.cmake (original)
+++ tcl/rivet/branches/cmake/cmake/cmake_extra_modules/checks.cmake Sat Aug 5 13:47:15 2017
@@ -33,8 +33,12 @@ check_function_exists(memcpy HAVE_
check_function_exists(mmap HAVE_MMAP)
check_function_exists(lseek64 HAVE_LSEEK64)
set(CMAKE_EXTRA_INCLUDE_FILES math.h)
+if(NOT WIN32)
+set(CMAKE_REQUIRED_LIBRARIES m)
+endif()
check_function_exists(round HAVE_ROUND)
set(CMAKE_EXTRA_INCLUDE_FILES)
+set(CMAKE_REQUIRED_LIBRARIES)
# Check types
include ( CheckTypeSize )
---------------------------------------------------------------------
To unsubscribe, e-mail: site-cvs-unsubscribe@tcl.apache.org
For additional commands, e-mail: site-cvs-help@tcl.apache.org