mirror of
https://github.com/reactos/CMake.git
synced 2024-12-12 05:45:51 +00:00
850ef90a66
`CUDA_RESOLVE_DEVICE_SYMBOLS` can be used with shared, module, and executable target types. This relaxation is to allow for better interoperability with linkers that automatically do CUDA device symbol resolution and have no way to disable it.
24 lines
911 B
CMake
24 lines
911 B
CMake
|
|
ADD_TEST_MACRO(CudaOnly.CircularLinkLine CudaOnlyCircularLinkLine)
|
|
ADD_TEST_MACRO(CudaOnly.EnableStandard CudaOnlyEnableStandard)
|
|
ADD_TEST_MACRO(CudaOnly.ExportPTX CudaOnlyExportPTX)
|
|
ADD_TEST_MACRO(CudaOnly.GPUDebugFlag CudaOnlyGPUDebugFlag)
|
|
ADD_TEST_MACRO(CudaOnly.ResolveDeviceSymbols CudaOnlyResolveDeviceSymbols)
|
|
ADD_TEST_MACRO(CudaOnly.SeparateCompilation CudaOnlySeparateCompilation)
|
|
ADD_TEST_MACRO(CudaOnly.WithDefs CudaOnlyWithDefs)
|
|
|
|
add_test(NAME CudaOnly.DontResolveDeviceSymbols COMMAND
|
|
${CMAKE_CTEST_COMMAND} -C $<CONFIGURATION>
|
|
--build-and-test
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/DontResolveDeviceSymbols/"
|
|
"${CMAKE_CURRENT_BINARY_DIR}/DontResolveDeviceSymbols/"
|
|
${build_generator_args}
|
|
--build-project DontResolveDeviceSymbols
|
|
--build-options ${build_options}
|
|
--test-command ${CMAKE_CTEST_COMMAND} -V -C $<CONFIGURATION>
|
|
)
|
|
|
|
if(MSVC)
|
|
ADD_TEST_MACRO(CudaOnly.PDB CudaOnlyPDB)
|
|
endif()
|