-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improvements to the build system (#86)
* Minor cleanups to build * Script cleanup * Simplified python building * Capitalization consistency... * Only mac autopath for python is needed * Mac without toolchain * Test for linux with no toolchain * Static/Shared division * Reverting feature that still doesn't work.
- Loading branch information
1 parent
f18346e
commit dfea262
Showing
13 changed files
with
81 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
################################################################################ | ||
# Determine python include path using python's distutils module | ||
macro(get_py_include) | ||
execute_process( | ||
COMMAND ${PYTHON_EXECUTABLE} -c | ||
"from distutils.sysconfig import get_python_inc; print(get_python_inc())" | ||
OUTPUT_VARIABLE PYTHON_INCLUDE_PATH OUTPUT_STRIP_TRAILING_WHITESPACE) | ||
endmacro() | ||
|
||
################################################################################ | ||
# Determine Python Library Path | ||
macro(get_py_lib) | ||
execute_process( | ||
COMMAND ${PYTHON_EXECUTABLE} -c | ||
" | ||
from distutils.sysconfig import get_python_lib | ||
path=get_python_lib(standard_lib=True)+\"/../../Python\" | ||
print(path)" | ||
OUTPUT_VARIABLE PYTHON_LIBRARIES OUTPUT_STRIP_TRAILING_WHITESPACE) | ||
endmacro() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
if [[ "$TESTOS" == "OSX" ]]; then | ||
cmake -DCMAKE_TOOLCHAIN_FILE=../Targets/Mac-python2.cmake \ | ||
-DCMAKE_BUILD_TYPE=Release .. ; | ||
cmake .. -DCMAKE_TOOLCHAIN_FILE=../Targets/Mac-python2.cmake \ | ||
-DCMAKE_BUILD_TYPE=Release ; | ||
else | ||
if [ ! -z ${NOIALLGATHER+x} ]; then | ||
cmake -DCMAKE_TOOLCHAIN_FILE=../Targets/Linux.cmake \ | ||
-DNOIALLGATHER=YES .. -DCMAKE_BUILD_TYPE=Release ; | ||
cmake .. -DCMAKE_TOOLCHAIN_FILE=../Targets/Linux.cmake \ | ||
-DNOIALLGATHER=YES -DCMAKE_BUILD_TYPE=Release ; | ||
elif [ -z ${FORTRAN_ONLY+x} ]; then | ||
cmake -DCMAKE_TOOLCHAIN_FILE=../Targets/Linux.cmake .. \ | ||
cmake .. -DCMAKE_TOOLCHAIN_FILE=../Targets/Linux.cmake \ | ||
-DCMAKE_BUILD_TYPE=Release ; | ||
else | ||
cmake -DCMAKE_TOOLCHAIN_FILE=../Targets/Linux.cmake \ | ||
-DFORTRAN_ONLY=YES .. -DCMAKE_BUILD_TYPE=Release ; | ||
cmake .. -DCMAKE_TOOLCHAIN_FILE=../Targets/Linux.cmake \ | ||
-DFORTRAN_ONLY=YES -DCMAKE_BUILD_TYPE=Release ; | ||
fi | ||
fi |