diff options
author | Sebastián Barschkis <sebbas@sebbas.org> | 2020-09-17 17:59:27 +0300 |
---|---|---|
committer | Sebastián Barschkis <sebbas@sebbas.org> | 2020-09-17 18:32:39 +0300 |
commit | 08a3f01ddcd4ad3e81e66d8e05a65b67df5ebf66 (patch) | |
tree | a24b6204e3462f91feeb4a8c147f3a2e071d175d /build_files/cmake/platform | |
parent | f37c83a12bb2c047fd2a430addc1402319d3135b (diff) |
macOS: Added potrace in platform apple cmake
Ref T80818
Reviewed By: brecht
Maniphest Tasks: T80818
Differential Revision: https://developer.blender.org/D8922
Diffstat (limited to 'build_files/cmake/platform')
-rw-r--r-- | build_files/cmake/platform/platform_apple.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
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") |