using a keg-only dependency for a brew install cmake process #2498
Replies: 1 comment
-
It's a bit weird the CMake doesn't find Try doing ENV.prepend "CMAKE_PREFIX_PATH", Formula["pyside@2"].opt_lib/"cmake" in the formula. If that doesn't help (it might not, since this path should already be in Finally, failing that, it seems like it's just a matter of finding Python modules, so it might work to just find a way to expose the environment variable |
Beta Was this translation helpful? Give feedback.
-
i've been working on getting
brew install freecad
to an actual workable state, however one of the latest issues i'm running into is the cmake process that thebrew install --verbose freecad
kicks off does not manage to find the path / binaries forpyside@2
.freecad has several workbenches and runtime deps that require
pyside@2
to be picked up durning the configure step of the installation. the cmake, make, make install processes will continue without knowning the path to the pyside@2 binaries required for runtime. however, after the install process completes on initial launch of freecad the$USER
will be greeted with something like the below,in contrast, if i run
brew link pyside@2
before runningbrew install freecad
then the cmake process will pickup/detect pyside@2 binaries required for bundling into theFreeCAD.app
bundle during themake install
process of thebrew install freecad
command/process....that's good to know but doesn't seem to help when requiring pyside@2 to be linked using github actions.
please correct if i'm wrong, but since
pyside@2
iskeg-only
brew test-bot will not link pysdie@2 during the steps of building freecad.i attemtped adding the
.bin
prefix path with the following line in thefreecad.rb
formula, and the reranbrew install freecad
but cmake still did not detect thepyside@2
installation / path to required runtime binaries to bundle into theFreeCAD.app
bundle.i've read the formula cookbook several times, but haven't come across a use case in there that could help me resolve this issue that is arising.
as always, any and all help would be greatly appreciated 🙏
Beta Was this translation helpful? Give feedback.
All reactions