• Laurent Stacul's avatar
    Allow folly to build on systems not having the config-fmt.cmake (#1328) · b5ef0bf9
    Laurent Stacul authored
    Summary:
    As written in the documentation, {fmt} should be built alongside folly. This is not possible in my case. My usecase is to provide some kind of small distribution of shared libraries that can be installed on any systems. Hence I really need to have libfmt treated as a normal shared lib.
    
    Moreover, libfmt can be consumed on our side as a normal library outside on cmake. We do not provide the cmake config file which are strongly dependent on the system on which libfmt is installed.
    
    My proposal is to first look for the fmt-config.cmake as it is now but in case of cmake support is not provided by system, we fall back to a normal library lookup.
    Pull Request resolved: https://github.com/facebook/folly/pull/1328
    
    Reviewed By: simpkins
    
    Differential Revision: D20312046
    
    Pulled By: yfeldblum
    
    fbshipit-source-id: 2d6b4917b37a8ed1d553600599702259db22c212
    b5ef0bf9
folly-deps.cmake 7.18 KB