"vscode:/vscode.git/clone" did not exist on "68ae8b3d07c2e78c03ae6eb4af3be3cb67167152"
Commit bfed4705 authored by Mark Friedrichs's avatar Mark Friedrichs
Browse files

Added -DOPENMMCUDA_BUILDING_SHARED_LIBRARY to NVCC flags

parent 3f2acaf0
...@@ -335,7 +335,7 @@ IF(CUDA_FOUND) ...@@ -335,7 +335,7 @@ IF(CUDA_FOUND)
# Unfortunately the variables CUDA_NVCC_FLAGS_RELEASE and CUDA_NVCC_FLAGS_DEBUG # Unfortunately the variables CUDA_NVCC_FLAGS_RELEASE and CUDA_NVCC_FLAGS_DEBUG
# appear to be unused, at least in CMake 2.6 # appear to be unused, at least in CMake 2.6
# Release /MD linkage # Release /MD linkage
set(FLAGS ${FLAGS} "-Xcompiler \"/MD\"") set(FLAGS ${FLAGS} "-Xcompiler \"/MD\" -DOPENMMCUDA_BUILDING_SHARED_LIBRARY")
ENDIF(MSVC) ENDIF(MSVC)
SET(CUDA_NVCC_FLAGS "${FLAGS}" SET(CUDA_NVCC_FLAGS "${FLAGS}"
CACHE STRING "Semicolon delimit multiple arguments") CACHE STRING "Semicolon delimit multiple arguments")
...@@ -355,7 +355,7 @@ IF(CUDA_FOUND) ...@@ -355,7 +355,7 @@ IF(CUDA_FOUND)
SET(HAS_NVCC_FLAG TRUE) SET(HAS_NVCC_FLAG TRUE)
ENDIF(CUDA_NVCC_FLAGS MATCHES "-Xcompiler") ENDIF(CUDA_NVCC_FLAGS MATCHES "-Xcompiler")
IF(NOT HAS_NVCC_FLAG) IF(NOT HAS_NVCC_FLAG)
set(new_flags "-Xcompiler \"/MD\"") set(new_flags "-Xcompiler \"/MD\" -DOPENMMCUDA_BUILDING_SHARED_LIBRARY")
if(CUDA_NVCC_FLAGS) if(CUDA_NVCC_FLAGS)
set(new_flags "${CUDA_NVCC_FLAGS};${new_flags}") set(new_flags "${CUDA_NVCC_FLAGS};${new_flags}")
endif(CUDA_NVCC_FLAGS) endif(CUDA_NVCC_FLAGS)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment