From 88b40744b5d750f9a8641f97b08855dee03b848b Mon Sep 17 00:00:00 2001 From: Kyle Edwards Date: Thu, 13 Dec 2018 19:40:23 -0500 Subject: CMakeParseArguments: Remove superfluous includes of CMakeParseArguments Because cmake_parse_arguments() has been implemented as a native command, there is no need to include(CMakeParseArguments) anymore. Its inclusion has been removed from several CMake modules. Tests/CMakeOnly/CMakeLists.txt has been changed to include the *building* CMake's copy of CMakeParseArguments rather than the *built* CMake's copy. This file included the *built* copy because when this file was introduced, CMake could still be built with versions that didn't supply cmake_parse_arguments(). Now, CMake requires 3.1 or greater, where cmake_parse_arguments() existed but was still in the form of a module, so we include it from the *building* CMake. --- Modules/FindProtobuf.cmake | 2 -- 1 file changed, 2 deletions(-) (limited to 'Modules/FindProtobuf.cmake') diff --git a/Modules/FindProtobuf.cmake b/Modules/FindProtobuf.cmake index 593fff6e6d..1758fb3556 100644 --- a/Modules/FindProtobuf.cmake +++ b/Modules/FindProtobuf.cmake @@ -121,8 +121,6 @@ Example: #]=======================================================================] function(protobuf_generate) - include(CMakeParseArguments) - set(_options APPEND_PATH DESCRIPTORS) set(_singleargs LANGUAGE OUT_VAR EXPORT_MACRO PROTOC_OUT_DIR) if(COMMAND target_sources) -- cgit v1.2.1