From 78be324762f686fbd83591e3d0bba05f7844d823 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 6 Feb 2014 11:12:50 -0500 Subject: Tests: Speed up RunCMake.CheckModules test Enable the C and CXX languages only in the test cases that really need them. In the failure cases we do not get far enough to really use the languages, so skip enabling them. --- Tests/RunCMake/CheckModules/CMakeLists.txt | 2 +- Tests/RunCMake/CheckModules/CheckStructHasMemberOk.cmake | 2 ++ Tests/RunCMake/CheckModules/CheckTypeSizeOk.cmake | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Tests/RunCMake/CheckModules/CMakeLists.txt b/Tests/RunCMake/CheckModules/CMakeLists.txt index 65ac8e8..72abfc8 100644 --- a/Tests/RunCMake/CheckModules/CMakeLists.txt +++ b/Tests/RunCMake/CheckModules/CMakeLists.txt @@ -1,3 +1,3 @@ cmake_minimum_required(VERSION 2.8.11) -project(${RunCMake_TEST}) +project(${RunCMake_TEST} NONE) include(${RunCMake_TEST}.cmake) diff --git a/Tests/RunCMake/CheckModules/CheckStructHasMemberOk.cmake b/Tests/RunCMake/CheckModules/CheckStructHasMemberOk.cmake index b319e18..4c064c5 100644 --- a/Tests/RunCMake/CheckModules/CheckStructHasMemberOk.cmake +++ b/Tests/RunCMake/CheckModules/CheckStructHasMemberOk.cmake @@ -1,3 +1,5 @@ +enable_language(C) +enable_language(CXX) include(CheckStructHasMember) check_struct_has_member("struct timeval" tv_sec sys/select.h HAVE_TIMEVAL_TV_SEC) check_struct_has_member("struct timeval" tv_sec sys/select.h HAVE_TIMEVAL_TV_SEC_C LANGUAGE C) diff --git a/Tests/RunCMake/CheckModules/CheckTypeSizeOk.cmake b/Tests/RunCMake/CheckModules/CheckTypeSizeOk.cmake index 558f07e..45a4978 100644 --- a/Tests/RunCMake/CheckModules/CheckTypeSizeOk.cmake +++ b/Tests/RunCMake/CheckModules/CheckTypeSizeOk.cmake @@ -1,3 +1,5 @@ +enable_language(C) +enable_language(CXX) include(CheckTypeSize) check_type_size(int SIZEOF_INT) check_type_size(int SIZEOF_INT BUILTIN_TYPES_ONLY) -- cgit v0.12