From d47a2c67e43476ba8c3fb62705ec5a3a4ac02cf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanis=C5=82aw=20Pitucha?= Date: Tue, 15 Oct 2024 19:43:33 +1100 Subject: [PATCH] Allow ignoring macos package manager Allow building without either homebrew or macports. This allows building in other environments, for example nixpkgs. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a18c7f0b2b..426303acc7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,7 +25,7 @@ ENDIF() #shamelessly borrowed from FreeCAD project: https://github.com/FreeCAD/FreeCAD/blob/master/cMake/FreeCAD_Helpers/SetupPython.cmake # For building on OS X -if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") +if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin" AND NOT DEFINED IGNORE_PACKAGE_MANAGER) # If the user doesn't tell us which package manager they're using if(NOT DEFINED MACPORTS_PREFIX AND NOT DEFINED HOMEBREW_PREFIX)