From: <tm...@us...> - 2009-09-15 05:41:26
|
Revision: 4424 http://hugin.svn.sourceforge.net/hugin/?rev=4424&view=rev Author: tmodes Date: 2009-09-15 05:41:12 +0000 (Tue, 15 Sep 2009) Log Message: ----------- Fix for log2 function for windows Modified Paths: -------------- hugin/trunk/CMakeLists.txt Modified: hugin/trunk/CMakeLists.txt =================================================================== --- hugin/trunk/CMakeLists.txt 2009-09-15 04:18:52 UTC (rev 4423) +++ hugin/trunk/CMakeLists.txt 2009-09-15 05:41:12 UTC (rev 4424) @@ -69,10 +69,15 @@ include_directories( ${CMAKE_SOURCE_DIR}/src/celeste ) # this function is not available on some systems, notably FreeBSD +if(WIN32) +set(HAVE_LOG2 1) +# function log2 for win is declared in hugin_math +ELSE(WIN32) include(CheckFunctionExists) set(CMAKE_REQUIRED_LIBRARIES -lm) check_function_exists(log2 HAVE_LOG2) message("LOG2 ${HAVE_LOG2}") +ENDIF(WIN32) # # find dependencies This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |