summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake
diff options
context:
space:
mode:
authorRobert Maynard <robert.maynard@kitware.com>2020-01-31 15:24:50 (GMT)
committerRobert Maynard <robert.maynard@kitware.com>2020-01-31 17:05:11 (GMT)
commit7f39ea3318ee8b1455640c4b48cabf808e24cd71 (patch)
tree5fe2b3c1eac4bed52054eadd7bf56d9d8aad3c64 /Tests/RunCMake
parentd70b71c14f6b631ee4570c530b7a48f2ca72de54 (diff)
downloadCMake-7f39ea3318ee8b1455640c4b48cabf808e24cd71.zip
CMake-7f39ea3318ee8b1455640c4b48cabf808e24cd71.tar.gz
CMake-7f39ea3318ee8b1455640c4b48cabf808e24cd71.tar.bz2
NinjaMultiConfig: CUDA executables generate symbols on windows
Diffstat (limited to 'Tests/RunCMake')
-rw-r--r--Tests/RunCMake/NinjaMultiConfig/Common.cmake5
-rw-r--r--Tests/RunCMake/NinjaMultiConfig/CudaSimple-debug-target-build-check.cmake1
2 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/NinjaMultiConfig/Common.cmake b/Tests/RunCMake/NinjaMultiConfig/Common.cmake
index e13bd53..6c0d82a 100644
--- a/Tests/RunCMake/NinjaMultiConfig/Common.cmake
+++ b/Tests/RunCMake/NinjaMultiConfig/Common.cmake
@@ -36,6 +36,11 @@ function(generate_output_files)
if(type MATCHES "^(EXECUTABLE)$")
set(exe_file " [==[$<TARGET_FILE_DIR:${tgt}>/$<TARGET_FILE_PREFIX:${tgt}>$<TARGET_FILE_BASE_NAME:${tgt}>$<TARGET_FILE_SUFFIX:${tgt}>]==]")
set(exe_filename " [==[$<TARGET_FILE_PREFIX:${tgt}>$<TARGET_FILE_BASE_NAME:${tgt}>$<TARGET_FILE_SUFFIX:${tgt}>]==]")
+
+ if(WIN32)
+ set(exe_lib_file " [==[$<TARGET_FILE_DIR:${tgt}>/$<TARGET_FILE_PREFIX:${tgt}>$<TARGET_FILE_BASE_NAME:${tgt}>.lib]==]")
+ string(APPEND content "set(TARGET_EXE_LIB_FILE_${tgt}_$<CONFIG>${exe_lib_file})\n")
+ endif()
else()
set(exe_file)
set(exe_filename)
diff --git a/Tests/RunCMake/NinjaMultiConfig/CudaSimple-debug-target-build-check.cmake b/Tests/RunCMake/NinjaMultiConfig/CudaSimple-debug-target-build-check.cmake
index b0fca18..39db5ff 100644
--- a/Tests/RunCMake/NinjaMultiConfig/CudaSimple-debug-target-build-check.cmake
+++ b/Tests/RunCMake/NinjaMultiConfig/CudaSimple-debug-target-build-check.cmake
@@ -3,6 +3,7 @@ check_files("${RunCMake_TEST_BINARY_DIR}"
${GENERATED_FILES}
${TARGET_FILE_simplecudaexe_Debug}
+ ${TARGET_EXE_LIB_FILE_simplecudaexe_Debug}
${TARGET_OBJECT_FILES_simplecudaexe_Debug}
${TARGET_FILE_simplecudashared_Debug}