nvcc error when recompiling after edits to `CMakeLists.txt`
I work on a library that uses CMake for its build system, has new commits and PRs several times a week, which are deployed immediately into production. The issue I have is that when new CMake options are added in a PR, and production code is reconfigured, we often get this build failure message:
nvcc fatal : redefinition of argument 'ftz'
The only way to resolve this is to delete the CMakeCache.txt
file and reconfigure. Other that creating a build script with fixed CMake flags (of which there are very many) for each different production channel (of which there are also many) is there any way to preserve the settings in a CMakeCache.txt
file after editing the CMakeLists.txt
files which will avoid the above error?