diff options
author | Brad King <brad.king@kitware.com> | 2014-02-06 16:12:50 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-02-06 16:12:50 (GMT) |
commit | 78be324762f686fbd83591e3d0bba05f7844d823 (patch) | |
tree | 872aec3ce5b0058a7811c673f0dac94933dcbeed /Tests/RunCMake/CheckModules/CheckStructHasMemberOk.cmake | |
parent | f55528186a9ff607cbf369299253957848314dd5 (diff) | |
download | CMake-78be324762f686fbd83591e3d0bba05f7844d823.zip CMake-78be324762f686fbd83591e3d0bba05f7844d823.tar.gz CMake-78be324762f686fbd83591e3d0bba05f7844d823.tar.bz2 |
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.
Diffstat (limited to 'Tests/RunCMake/CheckModules/CheckStructHasMemberOk.cmake')
-rw-r--r-- | Tests/RunCMake/CheckModules/CheckStructHasMemberOk.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
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) |