Added setting of CMP0045 for compatibility with newer CMake