cmocka: add static lib and cmockery support.
Closes #9082. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
cf5c06f792
commit
af14742bfb
1 changed files with 2 additions and 1 deletions
|
@ -15,12 +15,13 @@ class Cmocka < Formula
|
|||
|
||||
def install
|
||||
args = std_cmake_args
|
||||
args << "-DWITH_STATIC_LIB=ON" << "-DWITH_CMOCKERY_SUPPORT=ON" << "-DUNIT_TESTING=ON"
|
||||
if MacOS.version == "10.11" && MacOS::Xcode.installed? && MacOS::Xcode.version >= "8.0"
|
||||
args << "-DHAVE_CLOCK_GETTIME:INTERNAL=0"
|
||||
end
|
||||
|
||||
mkdir "build" do
|
||||
system "cmake", "..", "-DUNIT_TESTING=On", *args
|
||||
system "cmake", "..", *args
|
||||
system "make"
|
||||
system "make", "install"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue