CheckTypeSize: Add unit test to cover the no-C case

This commit is contained in:
Daniele E. Domenichelli 2014-03-17 17:36:14 +01:00
parent 7d6d45f23c
commit 7f857775e2
2 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,4 @@
enable_language(CXX)
include(CheckTypeSize)
check_type_size(int SIZEOF_INT LANGUAGE CXX)
check_type_size(int SIZEOF_INT BUILTIN_TYPES_ONLY LANGUAGE CXX)

View File

@ -12,3 +12,5 @@ run_cmake(CheckTypeSizeUnknownLanguage)
run_cmake(CheckTypeSizeMissingLanguage) run_cmake(CheckTypeSizeMissingLanguage)
run_cmake(CheckTypeSizeUnknownArgument) run_cmake(CheckTypeSizeUnknownArgument)
run_cmake(CheckTypeSizeMixedArgs) run_cmake(CheckTypeSizeMixedArgs)
run_cmake(CheckTypeSizeOkNoC)