pfultz2/cget-recipes

The sfml recipe is not working

sztomi opened this issue · 3 comments

It is trying to install to a non-user location:

-- Installing: /Library/Frameworks/FLAC.framework . 
CMake Error at cmake_install.cmake:55 (file):
  file INSTALL cannot make directory "/Library/Frameworks/FLAC.framework":
  Permission denied

Hmm, it shouldn't be installing FLAC. It looks like it doesn't find FLAC on mac. I wonder if its because SFML sets CMAKE_OSX_ARCHITECTURES.

So, as a workaround you can set CMAKE_FIND_FRAMEWORK to LAST by doing cget install sfml -DCMAKE_FIND_FRAMEWORK=LAST. I'll add that setting to the recipe.

Ultimately, I think LAST should be the default. I am not sure why cmake chooses FIRST as the default. Maybe a better option would be to set that in the toolchain.

So this is fixed on master now.