summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/src/Interop/PInvoke/DllImportPath/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/src/Interop/PInvoke/DllImportPath/CMakeLists.txt b/tests/src/Interop/PInvoke/DllImportPath/CMakeLists.txt
index a0d2992c61..34634b5b02 100644
--- a/tests/src/Interop/PInvoke/DllImportPath/CMakeLists.txt
+++ b/tests/src/Interop/PInvoke/DllImportPath/CMakeLists.txt
@@ -5,6 +5,13 @@ include_directories(${INC_PLATFORM_DIR})
set(SOURCES
DllImportPathNative.cpp
)
+
+# Set CMP0037 to OLD for this directory, so that
+# CMake doesn't complain about the libraries with Unicode characters.
+if(NOT (CMAKE_MAJOR_VERSION LESS 3))
+ cmake_policy(SET CMP0037 OLD)
+endif()
+
# Additional files to reference:
# add the executable
add_library (DllImportPath_Local SHARED ${SOURCES})