Skip to content
Snippets Groups Projects
Commit df23de0d authored by Martin Schönherr's avatar Martin Schönherr :speech_balloon:
Browse files

changed CMakeLists.txt of GridGenerator

parent 62ca8b91
No related branches found
No related tags found
1 merge request!75deletet all gpu related files, changed alle .cu files to .cpp files and add...
project(GridGenerator LANGUAGES CUDA CXX)
project(GridGenerator LANGUAGES CXX)
vf_add_library(PRIVATE_LINK basics OpenMP::OpenMP_CXX)
vf_get_library_name(library_name)
set_target_properties(${library_name} PROPERTIES CUDA_SEPARABLE_COMPILATION ON)
# according to linker error when building static libraries.
# https://stackoverflow.com/questions/50033435/cmake-cuda-separate-compilation-static-lib-link-error-on-windows-but-not-on-ubun
if (NOT BUILD_SHARED_LIBRARY)
set_target_properties(${library_name} PROPERTIES CUDA_RESOLVE_DEVICE_SYMBOLS ON)
endif()
# we want to suppress all cuda warnings so far for this library.
target_compile_options(${library_name} PUBLIC $<$<COMPILE_LANGUAGE:CUDA>:-Xcudafe "-w" >)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment