libcxxwrap-julia icon indicating copy to clipboard operation
libcxxwrap-julia copied to clipboard

Propose FindJulia.cmake to upstream cmake

Open termoshtt opened this issue 5 years ago • 3 comments

Hi team,

I try to use cmake for linking libjulia.so, and I need find_package for Julia. FindJulia.cmake in this repository is latest and well managed as far as I searched. Do you have a plan to propose this script to the official cmake repository? It will be useful for other Julia users trying to use it from another language e.g. Fortran.

Thanks.

termoshtt avatar May 31 '19 06:05 termoshtt

A possible alternative option (if there is someone willing to maintain it) is to install a JuliaConfig.cmake configuration file with Julia itself. Even if Julia is not built with CMake, it is possible nevertheless to generate a JuliaConfig.cmake file, see for example libxml2:

  • https://github.com/GNOME/libxml2/blob/619534ef2ed501e5206915064a5bc36153a897f7/Makefile.am#L1263
  • https://github.com/GNOME/libxml2/blob/619534ef2ed501e5206915064a5bc36153a897f7/libxml2-config.cmake.in

traversaro avatar May 31 '19 07:05 traversaro

Yes, I think adding a JuliaConfig.cmake file would be the way to go. The best solution is to convert Julia to using CMake, but that's slightly more involved ;)

barche avatar Jun 02 '19 20:06 barche

Yes, it would be great if Julia moved to CMake.

SylvainCorlay avatar Oct 30 '19 21:10 SylvainCorlay