summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/PrecompileHeaders/PchIncludedOneLanguage.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-10-31 16:02:44 (GMT)
committerBrad King <brad.king@kitware.com>2022-10-31 16:17:29 (GMT)
commit4d13f472a2ebd09f6f7f3be466e5d000bbeb6908 (patch)
tree75a2f97c446ab8cbdac02a2c4204b293e7eb0452 /Tests/RunCMake/PrecompileHeaders/PchIncludedOneLanguage.cmake
parent2e65fe92db4ec2869618e863f80f21c825ac9e1c (diff)
downloadCMake-4d13f472a2ebd09f6f7f3be466e5d000bbeb6908.zip
CMake-4d13f472a2ebd09f6f7f3be466e5d000bbeb6908.tar.gz
CMake-4d13f472a2ebd09f6f7f3be466e5d000bbeb6908.tar.bz2
Tests: Drop redundant project init from RunCMake.PrecompileHeaders cases
The `CMakeLists.txt` file already calls `cmake_minimum_required` and `project` before including each case's code.
Diffstat (limited to 'Tests/RunCMake/PrecompileHeaders/PchIncludedOneLanguage.cmake')
-rw-r--r--Tests/RunCMake/PrecompileHeaders/PchIncludedOneLanguage.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/RunCMake/PrecompileHeaders/PchIncludedOneLanguage.cmake b/Tests/RunCMake/PrecompileHeaders/PchIncludedOneLanguage.cmake
index dd582ac..6c5e89d 100644
--- a/Tests/RunCMake/PrecompileHeaders/PchIncludedOneLanguage.cmake
+++ b/Tests/RunCMake/PrecompileHeaders/PchIncludedOneLanguage.cmake
@@ -1,5 +1,5 @@
-cmake_minimum_required(VERSION 3.16)
-project(PchIncludedAllLanguages C CXX)
+enable_language(C)
+enable_language(CXX)
if(CMAKE_CXX_COMPILE_OPTIONS_USE_PCH)
add_definitions(-DHAVE_PCH_SUPPORT)