Skip to content

Commit

Permalink
cppunit uses pkg-config now
Browse files Browse the repository at this point in the history
  • Loading branch information
garyjg committed Sep 19, 2024
1 parent 4297776 commit 9465ba6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions eol_scons/tools/cppunit.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,15 @@
import SCons.Errors
import eol_scons.parseconfig as pc

_cmd = 'cppunit-config --cflags --libs'
_cmd = 'pkg-config --cflags --libs cppunit'


def generate(env):
# Don't try here to make things unique in LIBS and CFLAGS; just do a
# simple append
if not pc.ParseConfig(env, _cmd, unique=False):
print("Unable to run cppunit-config. Cannot load tool cppunit.")
print("cppunit not found: %s" % (_cmd))
raise SCons.Errors.StopError
# needed for FC2
env.AppendLibrary("dl")


def exists(env):
Expand Down

0 comments on commit 9465ba6

Please sign in to comment.