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
554512e8
Commit
554512e8
authored
Jul 07, 2015
by
peastman
Browse files
Merge pull request #1022 from rmcgibbo/clang
Mark clang 3.6 as unsupported for building CPU platform in cmake
parents
5246ed6a
c1e692b4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
platforms/cpu/CMakeLists.txt
platforms/cpu/CMakeLists.txt
+17
-0
No files found.
platforms/cpu/CMakeLists.txt
View file @
554512e8
...
@@ -20,6 +20,23 @@ ENDIF(BUILD_TESTING)
...
@@ -20,6 +20,23 @@ ENDIF(BUILD_TESTING)
# this CMakeLists file rather than letting CMake visit them as SUBDIRS.
# this CMakeLists file rather than letting CMake visit them as SUBDIRS.
SET
(
OPENMM_SOURCE_SUBDIRS .
)
SET
(
OPENMM_SOURCE_SUBDIRS .
)
IF
(
CMAKE_CXX_COMPILER_ID MATCHES
"Clang"
)
set
(
CMAKE_COMPILER_IS_CLANGXX 1
)
ENDIF
(
CMAKE_CXX_COMPILER_ID MATCHES
"Clang"
)
IF
(
CMAKE_COMPILER_IS_CLANGXX
)
EXECUTE_PROCESS
(
COMMAND
${
CMAKE_CXX_COMPILER
}
--version OUTPUT_VARIABLE __clang_full_version_string
)
string
(
REGEX REPLACE
".*clang version ([0-9]+
\\
.[0-9]+).*"
"
\\
1"
CLANG_VERSION_STRING
${
__clang_full_version_string
}
)
unset
(
__clang_full_version_string
)
ENDIF
(
CMAKE_COMPILER_IS_CLANGXX
)
IF
(
CMAKE_COMPILER_IS_CLANGXX AND CLANG_VERSION_STRING STREQUAL
"3.6"
)
message
(
FATAL_ERROR
"The OpenMM CPU platform cannot be built with your current compiler, clang-3.6, due to bugs \
in the compiler's AVX support. Either downgrade to clang-3.5, upgrade to clang-3.7 or later, switch to an \
alternative compiler such as GCC, or turn off building of the CPU platform by unsetting the CMake variable \
OPENMM_BUILD_CPU_LIB."
)
ENDIF
(
CMAKE_COMPILER_IS_CLANGXX AND CLANG_VERSION_STRING STREQUAL
"3.6"
)
# Collect up information about the version of the OpenMM library we're building
# Collect up information about the version of the OpenMM library we're building
# and make it available to the code so it can be built into the binaries.
# and make it available to the code so it can be built into the binaries.
...
...
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