dfranx/SHADERed

CMake install command does not work with out-of-source build.

no-more-secrets opened this issue · 0 comments

Building v1.5.6 using CMake+Ninja.

When we do an out-of-source build, the install command fails to find the SHADERed binary; the culprit is this line:

install(PROGRAMS bin/SHADERed DESTINATION "${BINARY_INST_DESTINATION}" RENAME shadered)

If we add a prefix to the path like so:

install(PROGRAMS ${CMAKE_BINARY_DIR}/bin/SHADERed DESTINATION "${BINARY_INST_DESTINATION}" RENAME shadered)

then it works.