Re: [CMake] [CMAKE] Checking if a file exist at the installing process

2017-10-18 Thread paul via CMake
You can use install(CODE) or install(SCRIPT) to run custom cmake code at install time. The only caveat is the install location is actually `$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}` instead of just `${CMAKE_INSTALL_PREFIX}`. This can happen when the user calls `make DESTDIR=` or during cpack. On Wed,

[CMake] [CMAKE] Checking if a file exist at the installing process

2017-10-18 Thread Daniel Yoshizawa
Hello everyone, I have a problem and couldn't find a solution over the internet, the situation is that I must copy some files at make install, the trick is, I must check if the files exists at install time if they don't, I must copy the files, otherwise do nothing. It doesn't feel anywhere near f