Skip to content

Commit

Permalink
Merge pull request #7 from TeroFrondelius/fixing_DGESV
Browse files Browse the repository at this point in the history
Adding compiler flags
  • Loading branch information
TeroFrondelius authored Oct 17, 2019
2 parents e6b2663 + cd4cc94 commit 242ebd1
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using BinaryBuilder

name = "umat_binaries"
version = v"0.5.0"
version = v"0.5.1"

# Collection of sources required to build umat_binaries
sources = [
Expand All @@ -30,12 +30,16 @@ sources = [
]

# Bash recipe for building across all platforms
script = raw"""
prefix_script = """
export name=$name
export version=$version
"""
script = prefix_script * raw"""
cd $WORKSPACE/srcdir
cat >CMakeLists.txt <<EOL
cmake_minimum_required(VERSION 3.5)
project(Umat)
set(VERSION 0.5.0)
project($name)
set(VERSION $version)
enable_language(Fortran)
set(SOURCE_FILES mises_umat.f xit.f)
set(LIBRARY_NAME mises_umat)
Expand Down Expand Up @@ -78,10 +82,10 @@ fi
cat >CMakeLists.txt <<EOL
cmake_minimum_required(VERSION 3.5)
project(Umat)
set(VERSION 0.5.0)
project($name)
set(VERSION $version)
enable_language(Fortran)
set(CMAKE_Fortran_FLAGS "-fdefault-real-8")
set(CMAKE_Fortran_FLAGS "-fdefault-real-8 -fdefault-integer-8")
add_library(gurson_porous_plasticity SHARED gurson_porous_plasticity.f90)
target_link_libraries(gurson_porous_plasticity $OB)
install(TARGETS gurson_porous_plasticity DESTINATION lib)
Expand Down

0 comments on commit 242ebd1

Please sign in to comment.