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
7ff1faaf
Commit
7ff1faaf
authored
Dec 12, 2013
by
peastman
Browse files
All code is compiled with SSE enabled. This eliminates errors with some compilers.
parent
ef830210
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
CMakeLists.txt
CMakeLists.txt
+7
-3
No files found.
CMakeLists.txt
View file @
7ff1faaf
...
...
@@ -116,9 +116,13 @@ IF (APPLE)
# Improve the linking behavior of Mac libraries
SET
(
CMAKE_INSTALL_NAME_DIR
"@rpath"
)
SET
(
EXTRA_COMPILE_FLAGS
"-stdlib=libc++"
)
SET
(
EXTRA_COMPILE_FLAGS
"
-msse2
-stdlib=libc++"
)
ELSE
(
APPLE
)
SET
(
EXTRA_COMPILE_FLAGS
)
IF
(
WIN32
)
SET
(
EXTRA_COMPILE_FLAGS
)
ELSE
(
WIN32
)
SET
(
EXTRA_COMPILE_FLAGS
"-msse2"
)
ENDIF
(
WIN32
)
ENDIF
(
APPLE
)
IF
(
UNIX AND NOT CMAKE_BUILD_TYPE
)
...
...
@@ -257,7 +261,7 @@ FOREACH(subdir ${OPENMM_SOURCE_SUBDIRS})
## OpenMM was previously installed there.
INCLUDE_DIRECTORIES
(
BEFORE
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
subdir
}
/include
)
ENDFOREACH
(
subdir
)
SET_SOURCE_FILES_PROPERTIES
(
${
CMAKE_SOURCE_DIR
}
/libraries/sfmt/src/SFMT.cpp PROPERTIES COMPILE_FLAGS
"
-msse2
-DHAVE_SSE2=1"
)
SET_SOURCE_FILES_PROPERTIES
(
${
CMAKE_SOURCE_DIR
}
/libraries/sfmt/src/SFMT.cpp PROPERTIES COMPILE_FLAGS
"-DHAVE_SSE2=1"
)
# If API wrappers are being generated, and add them to the build.
FIND_PROGRAM
(
GCCXML_PATH gccxml PATH
...
...
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