Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
bfed4705
Commit
bfed4705
authored
Jun 04, 2010
by
Mark Friedrichs
Browse files
Added -DOPENMMCUDA_BUILDING_SHARED_LIBRARY to NVCC flags
parent
3f2acaf0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
CMakeLists.txt
CMakeLists.txt
+2
-2
No files found.
CMakeLists.txt
View file @
bfed4705
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment