libsndfile / libsndfile

A C library for reading and writing sound files containing sampled audio data.
http://libsndfile.github.io/libsndfile/
GNU Lesser General Public License v2.1
1.44k stars 381 forks source link

Broken AUTOGEN_SCRIPT path #1004

Open RadoBuransky opened 5 months ago

RadoBuransky commented 5 months ago

https://github.com/libsndfile/libsndfile/blob/c81375f070f3c6764969a738eacded64f53a076e/cmake/CMakeAutoGen.cmake#L4

CMAKE_MODULE_PATH is a list of directories, not a single path.(https://cmake.org/cmake/help/latest/variable/CMAKE_MODULE_PATH.html). This leads to error like this: CMake Error: Not a file: .../cmake/modules;.../libsndfile/cmake/CMakeAutoGenScript.cmake

evpobr commented 4 months ago

Hi @RadoBuransky . Yes, it is bug.