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
38dc3a3c
Commit
38dc3a3c
authored
Nov 02, 2015
by
peastman
Browse files
Merge pull request #1232 from rmcgibbo/fix-osx
[CMake] Fix OSX build
parents
7323ad80
8d5edd43
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
.travis.yml
.travis.yml
+3
-3
CMakeLists.txt
CMakeLists.txt
+1
-1
No files found.
.travis.yml
View file @
38dc3a3c
...
...
@@ -98,11 +98,11 @@ before_install:
# but this is a fast way to get an apparently functional precompiled
# build of swig that's more modern than what's in apt.
-
if [[ "$OPENCL" == "false" && "$CUDA" == "false" && "$TRAVIS_OS_NAME" == "linux" ]]; then
wget https://anaconda.org/
anacond
a/swig/3.0.
2
/download/linux-64/swig-3.0.
2
-0.tar.bz2;
wget https://anaconda.org/
omni
a/swig/3.0.
7
/download/linux-64/swig-3.0.
7
-0.tar.bz2;
mkdir $HOME/swig;
tar -xjvf swig-3.0.
2
-0.tar.bz2 -C $HOME/swig;
tar -xjvf swig-3.0.
7
-0.tar.bz2 -C $HOME/swig;
export PATH=$HOME/swig/bin:$PATH;
export SWIG_LIB=$HOME/swig/share/swig/3.0.
2
;
export SWIG_LIB=$HOME/swig/share/swig/3.0.
7
;
fi
-
if [[ "$CUDA" == "true" ]]; then
...
...
CMakeLists.txt
View file @
38dc3a3c
...
...
@@ -119,7 +119,7 @@ IF (APPLE AND (NOT PNACL))
SET
(
CMAKE_OSX_ARCHITECTURES
"x86_64"
CACHE STRING
"The processor architectures to build for"
FORCE
)
ENDIF
(
NOT CMAKE_OSX_ARCHITECTURES
)
IF
(
NOT CMAKE_OSX_SYSROOT
)
EXECUTE_PROCESS
(
COMMAND
"xcrun"
"--show-sdk-path"
OUTPUT_VARIABLE XCRUN_OSX_SYSROOT RESULT_VARIABLE XCRUN_OSX_SYSROOT_STATUS
)
EXECUTE_PROCESS
(
COMMAND
"xcrun"
"--show-sdk-path"
OUTPUT_VARIABLE XCRUN_OSX_SYSROOT RESULT_VARIABLE XCRUN_OSX_SYSROOT_STATUS
OUTPUT_STRIP_TRAILING_WHITESPACE
)
IF
(
XCRUN_OSX_SYSROOT_STATUS EQUAL 0
)
SET
(
CMAKE_OSX_SYSROOT
"
${
XCRUN_OSX_SYSROOT
}
"
CACHE STRING
"SDK Path"
FORCE
)
ENDIF
(
XCRUN_OSX_SYSROOT_STATUS EQUAL 0
)
...
...
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