Fixed Catch2 recipe.
This commit is contained in:
parent
96fc1984cd
commit
378c6ba341
@ -9,11 +9,12 @@ def _git_cook(env: Environment, repo) -> dict:
|
||||
lib_name = {
|
||||
'debug': 'Catch2d'
|
||||
}.get(env['BUILD_TYPE'], 'Catch2')
|
||||
libs = [lib_name]
|
||||
libs = []
|
||||
if not env.get('CATCH2_OWN_MAIN'):
|
||||
libs.append({
|
||||
'debug': 'Catch2Maind'
|
||||
}.get(env['BUILD_TYPE'], 'Catch2Main'))
|
||||
libs.append(lib_name)
|
||||
return {
|
||||
'CPPPATH': build_result['CPPPATH'],
|
||||
'LIBS': [env.FindLib(lib, paths=build_result['LIBPATH']) for lib in libs]
|
||||
|
Loading…
x
Reference in New Issue
Block a user