CMake: Use condition to avoid duplicate flags caused by set(… FORCE)