Made CMake scripts apply settings target-specific