mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 06:28:55 +02:00
25 lines
620 B
Plaintext
25 lines
620 B
Plaintext
From ffc9161c9731fe8b9b0696cf0caa724a198aa57d Mon Sep 17 00:00:00 2001
|
|
From: Jerome Duval <jerome.duval@gmail.com>
|
|
Date: Wed, 13 Apr 2016 23:38:21 +0000
|
|
Subject: Haiku patch
|
|
|
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 7f097cd..bff6414 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -42,7 +42,9 @@ if(CMAKE_COMPILER_IS_GNUCXX AND BUILD_SHARED_LIBS)
|
|
endif()
|
|
|
|
cmake_push_check_state(RESET)
|
|
-set(CMAKE_REQUIRED_LIBRARIES -lm)
|
|
+if(NOT HAIKU)
|
|
+ set(CMAKE_REQUIRED_LIBRARIES -lm)
|
|
+endif()
|
|
check_function_exists(lrintf HAVE_LRINTF)
|
|
check_function_exists(round HAVE_ROUND)
|
|
cmake_pop_check_state()
|
|
--
|
|
2.10.2
|
|
|