Skip to content

Commit

Permalink
sumo: further style error fixes
Browse files Browse the repository at this point in the history
Closes #13.

Signed-off-by: Matthias Schwamborn <[email protected]>
  • Loading branch information
Matthias Schwamborn authored and schwamborn committed Jun 14, 2022
1 parent c1e2687 commit 39aa75f
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions Formula/sumo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,10 @@ def install
# If found, SWIG is enabled by default by sumo cmake config step
# but Java/Python library paths found by cmake might still be broken,
# so we disable SWIG by default here.
if build.without?("swig")
cmake_args << "-DSWIG_EXECUTABLE=\"\""
end
# XXX: work in progress
# else
# cmake_args << "-DJAVA_HOME=#{Formula["openjdk"].opt_prefix}/libexec/openjdk.jdk/Contents/Home"
# cmake_args << "-DPython_ROOT_DIR=#{Formula["python"].opt_prefix}"
cmake_args << "-DSWIG_EXECUTABLE=\"\"" if build.without?("swig")
# XXX: pointers for getting '--with-swig' to work:
# cmake_args << "-DJAVA_HOME=#{Formula["openjdk"].opt_prefix}/libexec/openjdk.jdk/Contents/Home"
# cmake_args << "-DPython_ROOT_DIR=#{Formula["python"].opt_prefix}"

mkdir "build/cmake-build" do # creates and changes to dir in block
system "cmake", "../..", *cmake_args
Expand Down

0 comments on commit 39aa75f

Please sign in to comment.