Diff of /CMakeLists.txt [af5ab8] .. [8e64be]  Maximize  Restore

Switch to side-by-side view

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks