diff options
author | Brad King <brad.king@kitware.com> | 2014-03-20 13:22:23 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2014-03-20 13:22:23 (GMT) |
commit | 82c590b12ed7301539202b0af92f8181f7708f16 (patch) | |
tree | 8d2cccfc552460bb9006e669f3af875e7445a22d /Tests/RunCMake | |
parent | c79d98b457e9c2fc87ddf54631640e2efe8d81c4 (diff) | |
parent | 7f857775e212436dbca623a4bfe37a20c6c98e0a (diff) | |
download | CMake-82c590b12ed7301539202b0af92f8181f7708f16.zip CMake-82c590b12ed7301539202b0af92f8181f7708f16.tar.gz CMake-82c590b12ed7301539202b0af92f8181f7708f16.tar.bz2 |
Merge topic 'CheckTypeSize_#14056'
7f857775 CheckTypeSize: Add unit test to cover the no-C case
7d6d45f2 CheckTypeSize: Support for CXX when C language is not enabled
Diffstat (limited to 'Tests/RunCMake')
-rw-r--r-- | Tests/RunCMake/CheckModules/CheckTypeSizeOkNoC.cmake | 4 | ||||
-rw-r--r-- | Tests/RunCMake/CheckModules/RunCMakeTest.cmake | 2 |
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) |