The CMake documentation states that it should be done this way