Open artem opened 6 months ago
Describe the bug Meson fails to import faiss as cmake subproject using cmake module
To Reproduce
Put https://github.com/facebookresearch/faiss into the subprojects directory
subprojects
Import faiss using cmake module:
cmake = import('cmake') faiss_opts = cmake.subproject_options() faiss_opts.add_cmake_defines({'FAISS_ENABLE_GPU': false, 'FAISS_ENABLE_PYTHON': false, 'BUILD_TESTING': false}) faiss_proj = cmake.subproject('faiss', options: faiss_opts) faiss_lib = faiss_proj.dependency('faiss')
The following error is observed during meson setup:
meson setup
subprojects/faiss/meson.build:127:0: ERROR: Invalid variable name: 1_Flat_dir
P.S. I have narrowed the issue to the following CMake expressions in the Faiss: https://github.com/facebookresearch/faiss/blob/3121fc6/tutorial/cpp/CMakeLists.txt#L7-L8 . Seems like Meson fails to handle them properly. Commenting them out workarounds the issue.
Expected behavior Meson configures the project successfully
system parameters
In which direction should we proceed with this issue?
If this issue is not considered a priority to be fixed, what are the approximate steps so I could try to contribute the fix myself?
Ping @eli-schwartz @dcbaker
Describe the bug Meson fails to import faiss as cmake subproject using cmake module
To Reproduce
Put https://github.com/facebookresearch/faiss into the
subprojects
directoryImport faiss using cmake module:
The following error is observed during
meson setup
:P.S. I have narrowed the issue to the following CMake expressions in the Faiss: https://github.com/facebookresearch/faiss/blob/3121fc6/tutorial/cpp/CMakeLists.txt#L7-L8 . Seems like Meson fails to handle them properly. Commenting them out workarounds the issue.
Expected behavior Meson configures the project successfully
system parameters