mirror of
https://github.com/triqs/dft_tools
synced 2025-01-03 10:05:49 +01:00
Merge remote-tracking branch 'app4triqs/unstable' into unstable
This commit is contained in:
commit
556937134e
@ -104,6 +104,7 @@ target_compile_options(${PROJECT_NAME}_warnings
|
||||
-Wpedantic
|
||||
-Wno-sign-compare
|
||||
-Wno-deprecated-comma-subscript
|
||||
-Wno-unknown-warning-option
|
||||
$<$<CXX_COMPILER_ID:GNU>:-Wshadow=local>
|
||||
$<$<CXX_COMPILER_ID:GNU>:-Wno-attributes>
|
||||
$<$<CXX_COMPILER_ID:Clang>:-Wshadow>
|
||||
|
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@ -53,8 +53,8 @@ for (int i = 0; i < dockerPlatforms.size(); i++) {
|
||||
|
||||
/****************** osx builds (on host) */
|
||||
def osxPlatforms = [
|
||||
["gcc", ['CC=gcc-9', 'CXX=g++-9', 'FC=gfortran-9']],
|
||||
["clang", ['CC=$BREW/opt/llvm/bin/clang', 'CXX=$BREW/opt/llvm/bin/clang++', 'FC=gfortran-9', 'CXXFLAGS=-I$BREW/opt/llvm/include', 'LDFLAGS=-L$BREW/opt/llvm/lib']]
|
||||
["gcc", ['CC=gcc-10', 'CXX=g++-10', 'FC=gfortran-10']],
|
||||
["clang", ['CC=$BREW/opt/llvm/bin/clang', 'CXX=$BREW/opt/llvm/bin/clang++', 'FC=gfortran-10', 'CXXFLAGS=-I$BREW/opt/llvm/include', 'LDFLAGS=-L$BREW/opt/llvm/lib']]
|
||||
]
|
||||
for (int i = 0; i < osxPlatforms.size(); i++) {
|
||||
def platformEnv = osxPlatforms[i]
|
||||
@ -82,7 +82,7 @@ for (int i = 0; i < osxPlatforms.size(); i++) {
|
||||
"CPLUS_INCLUDE_PATH=$venv/include:$hdf5/include:${env.BREW}/include",
|
||||
"LIBRARY_PATH=$venv/lib:$hdf5/lib:${env.BREW}/lib",
|
||||
"LD_LIBRARY_PATH=$hdf5/lib",
|
||||
"PYTHONPATH=$installDir/lib/python3.7/site-packages",
|
||||
"PYTHONPATH=$installDir/lib/python3.8/site-packages",
|
||||
"CMAKE_PREFIX_PATH=$venv/lib/cmake/triqs"]) {
|
||||
deleteDir()
|
||||
/* note: this is installing into the parent (triqs) venv (install dir), which is thus shared among apps and so not be completely safe */
|
||||
|
11
deps/external_dependency.cmake
vendored
11
deps/external_dependency.cmake
vendored
@ -74,7 +74,16 @@ function(external_dependency)
|
||||
if(ARG_GIT_TAG)
|
||||
set(clone_opts --branch ${ARG_GIT_TAG} -c advice.detachedHead=false)
|
||||
endif()
|
||||
execute_process(COMMAND git clone ${ARG_GIT_REPO} --depth 1 ${clone_opts} ${src_dir})
|
||||
if(NOT GIT_EXECUTABLE)
|
||||
find_package(Git REQUIRED)
|
||||
endif()
|
||||
execute_process(COMMAND ${GIT_EXECUTABLE} clone ${ARG_GIT_REPO} --depth 1 ${clone_opts} ${src_dir}
|
||||
RESULT_VARIABLE clone_failed
|
||||
ERROR_VARIABLE clone_error
|
||||
)
|
||||
if(clone_failed)
|
||||
message(FATAL_ERROR "Failed to clone sources for dependency ${ARGV0}.\n ${clone_error}")
|
||||
endif()
|
||||
endif()
|
||||
add_subdirectory(${src_dir} ${bin_dir} ${subdir_opts})
|
||||
else()
|
||||
|
Loading…
Reference in New Issue
Block a user