diff options
author | Tushar Maheshwari <tushar27192@gmail.com> | 2019-01-24 17:12:09 (GMT) |
---|---|---|
committer | Tushar Maheshwari <tushar27192@gmail.com> | 2019-01-24 17:12:42 (GMT) |
commit | edda30d0f5c7230b7854d8d714159ad68a2344ef (patch) | |
tree | 20f1d7a530e85803cef079b2d0e39fad730748ce /Tests/RunCMake/get_filename_component | |
parent | 7a25ef326bc53293f2dd288a7c092b4080658821 (diff) | |
download | CMake-edda30d0f5c7230b7854d8d714159ad68a2344ef.zip CMake-edda30d0f5c7230b7854d8d714159ad68a2344ef.tar.gz CMake-edda30d0f5c7230b7854d8d714159ad68a2344ef.tar.bz2 |
Tests: Add tests for LAST_EXT and NAME_WLE
Diffstat (limited to 'Tests/RunCMake/get_filename_component')
-rw-r--r-- | Tests/RunCMake/get_filename_component/KnownComponents.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Tests/RunCMake/get_filename_component/KnownComponents.cmake b/Tests/RunCMake/get_filename_component/KnownComponents.cmake index ac77ac3..54b858f 100644 --- a/Tests/RunCMake/get_filename_component/KnownComponents.cmake +++ b/Tests/RunCMake/get_filename_component/KnownComponents.cmake @@ -11,8 +11,10 @@ set(expect_DIRECTORY "/path/to") set(expect_NAME "filename.ext.in") set(expect_EXT ".ext.in") set(expect_NAME_WE "filename") +set(expect_LAST_EXT ".in") +set(expect_NAME_WLE "filename.ext") set(expect_PATH "/path/to") -foreach(c DIRECTORY NAME EXT NAME_WE PATH) +foreach(c DIRECTORY NAME EXT NAME_WE LAST_EXT NAME_WLE PATH) get_filename_component(actual_${c} "${filename}" ${c}) check("${c}" "${actual_${c}}" "${expect_${c}}") list(APPEND non_cache_vars actual_${c}) |