summaryrefslogtreecommitdiffstats
path: root/bootstrap
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2020-08-29 22:50:59 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2020-09-03 13:30:27 (GMT)
commit407afc0f91447212e3001ca095f069db5329239a (patch)
tree9ed684ff834912e2b70150698fdc7a0358500fa3 /bootstrap
parentaa7bce84954999655f2808c3ac1f6ade4c40d038 (diff)
downloadCMake-407afc0f91447212e3001ca095f069db5329239a.zip
CMake-407afc0f91447212e3001ca095f069db5329239a.tar.gz
CMake-407afc0f91447212e3001ca095f069db5329239a.tar.bz2
Bootstrap: Use #pragma once in cmThirdParty.h
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap4
1 files changed, 1 insertions, 3 deletions
diff --git a/bootstrap b/bootstrap
index eabe06b..faade05 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