diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2021-03-26 15:27:18 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2021-03-26 15:27:18 (GMT) |
commit | 1d8e3a1e770ae4aed921eefffaceb70b1fd73701 (patch) | |
tree | e92bba9d4420302b016e6491ced6cf45a3d5add9 /Tests/RunCMake/UseSWIG/CMP0122-NEW-check.cmake | |
parent | 18a2e863852e6b9f918940698952b75e5e17dcd8 (diff) | |
download | CMake-1d8e3a1e770ae4aed921eefffaceb70b1fd73701.zip CMake-1d8e3a1e770ae4aed921eefffaceb70b1fd73701.tar.gz CMake-1d8e3a1e770ae4aed921eefffaceb70b1fd73701.tar.bz2 |
UseSWIG: Use standard library name conventions for csharp language
Fixes: #21542
Diffstat (limited to 'Tests/RunCMake/UseSWIG/CMP0122-NEW-check.cmake')
-rw-r--r-- | Tests/RunCMake/UseSWIG/CMP0122-NEW-check.cmake | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Tests/RunCMake/UseSWIG/CMP0122-NEW-check.cmake b/Tests/RunCMake/UseSWIG/CMP0122-NEW-check.cmake new file mode 100644 index 0000000..a26c278 --- /dev/null +++ b/Tests/RunCMake/UseSWIG/CMP0122-NEW-check.cmake @@ -0,0 +1,10 @@ + +cmake_policy(VERSION 3.1) + +file(STRINGS "${RunCMake_TEST_BINARY_DIR}/CMP0122-library-name.txt" prefixes) + +list(GET prefixes 0 std_prefix) +list(GET prefixes 1 lib_prefix) +if (NOT std_prefix STREQUAL lib_prefix) + string (APPEND RunCMake_TEST_FAILED "\nFound prefix: '${lib_prefix}', expected: '${std_prefix}'.") +endif() |