diff --git a/libc/CMakeLists.txt b/libc/CMakeLists.txt --- a/libc/CMakeLists.txt +++ b/libc/CMakeLists.txt @@ -2,7 +2,9 @@ # Use old version of target_sources command which converts the source # file paths to full paths. -cmake_policy(SET CMP0076 OLD) +if(POLICY CMP0076) + cmake_policy(SET CMP0076 OLD) +endif() list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules") # The top-level source directory of libc.