univrsal / spectralizer

Audio visualizer plugin for obs-studio
GNU General Public License v2.0
588 stars 57 forks source link

1.3.1 fails to install: file INSTALL cannot find ...README.txt #42

Closed yurivict closed 3 years ago

yurivict commented 3 years ago
CMake Error at cmake_install.cmake:61 (file):
  file INSTALL cannot find
  "/wrkdirs/usr/ports/multimedia/obs-audio-spectralizer/work/spectralizer-1.3.1/package/README.txt":
  No such file or directory.
univrsal commented 3 years ago

The file should be created after configuration, I don't know what you're doing

yurivict commented 3 years ago

This code

configure_file(
    package/README.txt.in
    ../package/README.txt
)

creates README.txt above the current directory. This should never be done.

Then this code:

       install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/package/README.txt"
            DESTINATION "${CMAKE_PROJECT_NAME}")

looks for it in the current directory and fails.