summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake
diff options
context:
space:
mode:
authorDaniele E. Domenichelli <daniele.domenichelli@iit.it>2014-03-17 16:36:14 (GMT)
committerDaniele E. Domenichelli <daniele.domenichelli@iit.it>2014-03-17 16:36:14 (GMT)
commit7f857775e212436dbca623a4bfe37a20c6c98e0a (patch)
tree56e568a658f60c38894ba64ece5ba3b636175c11 /Tests/RunCMake
parent7d6d45f23c25355f1da0ad9fcd9e45cdb05194f8 (diff)
downloadCMake-7f857775e212436dbca623a4bfe37a20c6c98e0a.zip
CMake-7f857775e212436dbca623a4bfe37a20c6c98e0a.tar.gz
CMake-7f857775e212436dbca623a4bfe37a20c6c98e0a.tar.bz2
CheckTypeSize: Add unit test to cover the no-C case
Diffstat (limited to 'Tests/RunCMake')
-rw-r--r--Tests/RunCMake/CheckModules/CheckTypeSizeOkNoC.cmake4
-rw-r--r--Tests/RunCMake/CheckModules/RunCMakeTest.cmake2
2 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/CheckModules/CheckTypeSizeOkNoC.cmake b/Tests/RunCMake/CheckModules/CheckTypeSizeOkNoC.cmake
new file mode 100644
index 0000000..b2dcd7f
--- /dev/null
+++ b/Tests/RunCMake/CheckModules/CheckTypeSizeOkNoC.cmake
@@ -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)
diff --git a/Tests/RunCMake/CheckModules/RunCMakeTest.cmake b/Tests/RunCMake/CheckModules/RunCMakeTest.cmake
index fda7ebf..5b4e57e 100644
--- a/Tests/RunCMake/CheckModules/RunCMakeTest.cmake
+++ b/Tests/RunCMake/CheckModules/RunCMakeTest.cmake
@@ -12,3 +12,5 @@ run_cmake(CheckTypeSizeUnknownLanguage)
run_cmake(CheckTypeSizeMissingLanguage)
run_cmake(CheckTypeSizeUnknownArgument)
run_cmake(CheckTypeSizeMixedArgs)
+
+run_cmake(CheckTypeSizeOkNoC)