From 7f39ea3318ee8b1455640c4b48cabf808e24cd71 Mon Sep 17 00:00:00 2001 From: Robert Maynard Date: Fri, 31 Jan 2020 10:24:50 -0500 Subject: NinjaMultiConfig: CUDA executables generate symbols on windows --- Tests/RunCMake/NinjaMultiConfig/Common.cmake | 5 +++++ .../NinjaMultiConfig/CudaSimple-debug-target-build-check.cmake | 1 + 2 files changed, 6 insertions(+) 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 " [==[$/$$$]==]") set(exe_filename " [==[$$$]==]") + + if(WIN32) + set(exe_lib_file " [==[$/$$.lib]==]") + string(APPEND content "set(TARGET_EXE_LIB_FILE_${tgt}_$${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} -- cgit v0.12