From 407afc0f91447212e3001ca095f069db5329239a Mon Sep 17 00:00:00 2001 From: Kyle Edwards Date: Sat, 29 Aug 2020 18:50:59 -0400 Subject: Bootstrap: Use #pragma once in cmThirdParty.h --- bootstrap | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'bootstrap') diff --git a/bootstrap b/bootstrap index eabe06b5fb..faade05232 100755 --- a/bootstrap +++ b/bootstrap @@ -1594,8 +1594,7 @@ for a in ${KWSYS_FILES}; do cmsys_header_files="${cmsys_header_files} cmsys/${a}" done -echo "#ifndef cmThirdParty_h" > "${cmake_bootstrap_dir}/cmThirdParty.h.tmp" -echo "#define cmThirdParty_h" >> "${cmake_bootstrap_dir}/cmThirdParty.h.tmp" +echo "#pragma once" > "${cmake_bootstrap_dir}/cmThirdParty.h.tmp" if test "x${bootstrap_system_libuv}" != "x"; then echo "#define CMAKE_USE_SYSTEM_LIBUV" >> "${cmake_bootstrap_dir}/cmThirdParty.h.tmp" fi @@ -1605,7 +1604,6 @@ fi if test "x${bootstrap_system_librhash}" != "x"; then echo "#define CMAKE_USE_SYSTEM_LIBRHASH" >> "${cmake_bootstrap_dir}/cmThirdParty.h.tmp" fi -echo "#endif" >> "${cmake_bootstrap_dir}/cmThirdParty.h.tmp" cmake_generate_file_tmp "${cmake_bootstrap_dir}/cmThirdParty.h" "${cmake_bootstrap_dir}/cmThirdParty.h.tmp" # Generate Makefile -- cgit v1.2.1