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