Commit
c0180203d4247d5e6 forced C++ linkage of all main functions.
But Carlo Camilloni reported that this can still give linker
errors. This should enforce C++ linkage also of libgmx.
Change-Id: I9a82637b792d727ea95e1dc6990099b621fc8ef2
CUDA_INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
set(CUDA_ATTACH_VS_BUILD_RULE_TO_CUDA_FILE OFF)
-file(GLOB GPU_UTILS_SOURCES *.cu)
+file(GLOB GPU_UTILS_SOURCES *.cu dummy.cpp)
CUDA_ADD_LIBRARY(gpu_utils STATIC ${GPU_UTILS_SOURCES}
OPTIONS ${_os_def}
RELWITHDEBINFO -g
--- /dev/null
+/* This source file has the sole purpose to force C++ linking of the gpu_utils
+ * static archive, otherwise the exception handling code generated inside
+ * memtestG80 will cause undefined symbols at linking. */