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-common.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-common.cmake')
-rw-r--r-- | Tests/RunCMake/UseSWIG/CMP0122-common.cmake | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Tests/RunCMake/UseSWIG/CMP0122-common.cmake b/Tests/RunCMake/UseSWIG/CMP0122-common.cmake new file mode 100644 index 0000000..be880ec --- /dev/null +++ b/Tests/RunCMake/UseSWIG/CMP0122-common.cmake @@ -0,0 +1,12 @@ + +cmake_policy(SET CMP0078 NEW) +cmake_policy(SET CMP0086 NEW) + +set(SWIG_EXECUTABLE "swig") +set(SWIG_DIR "/swig") +include(UseSWIG) + +swig_add_library(example LANGUAGE csharp TYPE SHARED SOURCES example.i) + +file(GENERATE OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/CMP0122-library-name.txt" + CONTENT "${CMAKE_SHARED_LIBRARY_PREFIX}\n$<TARGET_FILE_PREFIX:example>\n") |