Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
7f7449af
Commit
7f7449af
authored
10 years ago
by
Marina Ganeva
Browse files
Options
Downloads
Patches
Plain Diff
Minor changes to cmake files to fix the build with macports.
parent
e422f1aa
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Code/Mantid/Build/CMake/DarwinSetup.cmake
+17
-7
17 additions, 7 deletions
Code/Mantid/Build/CMake/DarwinSetup.cmake
Code/Mantid/MantidPlot/CMakeLists.txt
+4
-1
4 additions, 1 deletion
Code/Mantid/MantidPlot/CMakeLists.txt
with
21 additions
and
8 deletions
Code/Mantid/Build/CMake/DarwinSetup.cmake
+
17
−
7
View file @
7f7449af
...
@@ -131,20 +131,30 @@ else()
...
@@ -131,20 +131,30 @@ else()
set
(
CMAKE_OSX_ARCHITECTURES x86_64
)
set
(
CMAKE_OSX_ARCHITECTURES x86_64
)
set
(
CMAKE_OSX_DEPLOYMENT_TARGET 10.8
)
set
(
CMAKE_OSX_DEPLOYMENT_TARGET 10.8
)
# Follow symlinks so cmake copies the file
# Follow symlinks so cmake copies the file
set
(
PYQT4_PATH /usr/local/lib/python
${
PY_VER
}
/site-packages/PyQt4
)
# PYQT4_PATH, SITEPACKAGES_PATH, OPENSSL_ROOT_DIR may be defined externally (cmake -D)
# it would be good do not overwrite them (important for the compilation with macports)
if
(
NOT PYQT4_PATH
)
set
(
PYQT4_PATH /usr/local/lib/python
${
PY_VER
}
/site-packages/PyQt4
)
endif
(
NOT PYQT4_PATH
)
execute_process
(
COMMAND readlink
${
PYQT4_PATH
}
/Qt.so OUTPUT_VARIABLE PYQT4_SYMLINK_Qtso
)
execute_process
(
COMMAND readlink
${
PYQT4_PATH
}
/Qt.so OUTPUT_VARIABLE PYQT4_SYMLINK_Qtso
)
string
(
FIND
${
PYQT4_SYMLINK_Qtso
}
"Qt.so"
STOPPOS
)
string
(
FIND
"
${
PYQT4_SYMLINK_Qtso
}
"
"Qt.so"
STOPPOS
)
string
(
SUBSTRING
${
PYQT4_SYMLINK_Qtso
}
0
${
STOPPOS
}
PYQT4_SYMLINK
)
string
(
SUBSTRING
"
${
PYQT4_SYMLINK_Qtso
}
"
0
${
STOPPOS
}
PYQT4_SYMLINK
)
set
(
PYQT4_PYTHONPATH
${
PYQT4_PATH
}
/
${
PYQT4_SYMLINK
}
)
set
(
PYQT4_PYTHONPATH
${
PYQT4_PATH
}
/
${
PYQT4_SYMLINK
}
)
string
(
REGEX REPLACE
"/$"
""
PYQT4_PYTHONPATH
"
${
PYQT4_PYTHONPATH
}
"
)
set
(
SITEPACKAGES_PATH /usr/local/lib/python
${
PY_VER
}
/site-packages
)
if
(
NOT SITEPACKAGES_PATH
)
set
(
SITEPACKAGES_PATH /usr/local/lib/python
${
PY_VER
}
/site-packages
)
endif
(
NOT SITEPACKAGES_PATH
)
execute_process
(
COMMAND readlink
${
SITEPACKAGES_PATH
}
/sip.so OUTPUT_VARIABLE SITEPACKAGES_SYMLINK_sipso
)
execute_process
(
COMMAND readlink
${
SITEPACKAGES_PATH
}
/sip.so OUTPUT_VARIABLE SITEPACKAGES_SYMLINK_sipso
)
string
(
FIND
${
SITEPACKAGES_SYMLINK_sipso
}
"sip.so"
STOPPOS
)
string
(
FIND
"
${
SITEPACKAGES_SYMLINK_sipso
}
"
"sip.so"
STOPPOS
)
string
(
SUBSTRING
${
SITEPACKAGES_SYMLINK_sipso
}
0
${
STOPPOS
}
SITEPACKAGES_SYMLINK
)
string
(
SUBSTRING
"
${
SITEPACKAGES_SYMLINK_sipso
}
"
0
${
STOPPOS
}
SITEPACKAGES_SYMLINK
)
set
(
SITEPACKAGES
${
SITEPACKAGES_PATH
}
/
${
SITEPACKAGES_SYMLINK
}
)
set
(
SITEPACKAGES
${
SITEPACKAGES_PATH
}
/
${
SITEPACKAGES_SYMLINK
}
)
string
(
REGEX REPLACE
"/$"
""
SITEPACKAGES
"
${
SITEPACKAGES
}
"
)
# use homebrew OpenSSL package
# use homebrew OpenSSL package
set
(
OPENSSL_ROOT_DIR /usr/local/opt/openssl
)
if
(
NOT OPENSSL_ROOT_DIR
)
set
(
OPENSSL_ROOT_DIR /usr/local/opt/openssl
)
endif
(
NOT OPENSSL_ROOT_DIR
)
endif
()
endif
()
# Python packages
# Python packages
...
...
This diff is collapsed.
Click to expand it.
Code/Mantid/MantidPlot/CMakeLists.txt
+
4
−
1
View file @
7f7449af
...
@@ -1037,8 +1037,11 @@ foreach(PY_FILE ${IPY_FILES} )
...
@@ -1037,8 +1037,11 @@ foreach(PY_FILE ${IPY_FILES} )
endforeach
()
endforeach
()
install
(
FILES
${
CONFIG_RESET_SCRIPT
}
DESTINATION
${
BIN_DIR
}
)
install
(
FILES
${
CONFIG_RESET_SCRIPT
}
DESTINATION
${
BIN_DIR
}
)
# file make_package.rb contains hard-coded path to the libraries
# this causes fail of the installation with macports
# therefore MACPORTS option is introduced
if
(
APPLE
)
if
(
APPLE
)
if
(
OSX_VERSION VERSION_LESS 10.9
)
if
(
OSX_VERSION VERSION_LESS 10.9
OR MACPORTS
)
configure_file
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/FixBundle.cmake.in
configure_file
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/FixBundle.cmake.in
${
CMAKE_CURRENT_BINARY_DIR
}
/FixBundle.cmake
${
CMAKE_CURRENT_BINARY_DIR
}
/FixBundle.cmake
@ONLY
)
@ONLY
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment