Skip to content

Commit

Permalink
actually set build type, not just for mac
Browse files Browse the repository at this point in the history
  • Loading branch information
rdeits committed Apr 26, 2018
1 parent c480b2d commit 4877e9c
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions deps/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,12 @@ end

prefix = joinpath(BinDeps.depsdir(lcm), "usr")

lcm_cmake_arguments = String[]
lcm_cmake_arguments = [
"-DCMAKE_BUILD_TYPE=Release",
"-DLCM_ENABLE_TESTS:BOOL=OFF",
"-DLCM_ENABLE_EXAMPLES:BOOL=OFF"
]

@static if Compat.Sys.isapple()
if Pkg.installed("Homebrew") === nothing
error("Homebrew package not installed, please run Pkg.add(\"Homebrew\")")
Expand All @@ -48,11 +53,7 @@ lcm_cmake_arguments = String[]
provides(Homebrew.HB, "glib", glib, os=:Darwin)
push!(lcm_cmake_arguments,
"-DCMAKE_LIBRARY_PATH=$(joinpath(Pkg.dir("Homebrew"), "deps", "usr", "lib"))",
"-DCMAKE_INCLUDE_PATH=$(joinpath(Pkg.dir("Homebrew"), "deps", "usr", "include"))",
"-DCMAKE_BUILD_TYPE=Release",
"-DLCM_ENABLE_TESTS:BOOL=OFF",
"-DLCM_ENABLE_EXAMPLES:BOOL=OFF")

"-DCMAKE_INCLUDE_PATH=$(joinpath(Pkg.dir("Homebrew"), "deps", "usr", "include"))")
end

provides(Yum,
Expand Down

0 comments on commit 4877e9c

Please sign in to comment.