[Bf-blender-cvs] [08a3f01ddcd] master: macOS: Added potrace in platform apple cmake
SebastiaÌn Barschkis
noreply at git.blender.org
Thu Sep 17 17:32:42 CEST 2020
Commit: 08a3f01ddcd4ad3e81e66d8e05a65b67df5ebf66
Author: Sebastián Barschkis
Date: Thu Sep 17 16:59:27 2020 +0200
Branches: master
https://developer.blender.org/rB08a3f01ddcd4ad3e81e66d8e05a65b67df5ebf66
macOS: Added potrace in platform apple cmake
Ref T80818
Reviewed By: brecht
Maniphest Tasks: T80818
Differential Revision: https://developer.blender.org/D8922
===================================================================
M build_files/cmake/platform/platform_apple.cmake
===================================================================
diff --git a/build_files/cmake/platform/platform_apple.cmake b/build_files/cmake/platform/platform_apple.cmake
index c16fa4b2e30..11628da39a7 100644
--- a/build_files/cmake/platform/platform_apple.cmake
+++ b/build_files/cmake/platform/platform_apple.cmake
@@ -416,6 +416,14 @@ if(WITH_GMP)
endif()
endif()
+if(WITH_POTRACE)
+ find_package(Potrace)
+ if(NOT POTRACE_FOUND)
+ message(WARNING "potrace not found, disabling WITH_POTRACE")
+ set(WITH_POTRACE OFF)
+ endif()
+endif()
+
# CMake FindOpenMP doesn't know about AppleClang before 3.12, so provide custom flags.
if(WITH_OPENMP)
if(CMAKE_C_COMPILER_ID MATCHES "AppleClang" AND CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL "7.0")
More information about the Bf-blender-cvs
mailing list