Commit 78be3247 authored by Brad King's avatar Brad King

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.
parent f5552818
cmake_minimum_required(VERSION 2.8.11)
project(${RunCMake_TEST})
project(${RunCMake_TEST} NONE)
include(${RunCMake_TEST}.cmake)
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)
......
enable_language(C)
enable_language(CXX)
include(CheckTypeSize)
check_type_size(int SIZEOF_INT)
check_type_size(int SIZEOF_INT BUILTIN_TYPES_ONLY)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment