diff --git a/CMakeLists.txt b/CMakeLists.txt index 6f46c1d37..593c31144 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,6 +30,10 @@ project(Magnum) if(POLICY CMP0042) cmake_policy(SET CMP0042 NEW) endif() +# Don't treat imported targets with :: as files +if(POLICY CMP0028) + cmake_policy(SET CMP0028 NEW) +endif() set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/modules/")