@@ -360,7 +360,6 @@ catch2 = static_library(
360
360
dependencies : catch2_dependencies,
361
361
include_directories : ' ..' ,
362
362
install : get_option (' install' ),
363
- native : true ,
364
363
build_by_default : meson .is_subproject() == false
365
364
)
366
365
@@ -369,6 +368,19 @@ catch2_dep = declare_dependency(
369
368
include_directories : ' ..' ,
370
369
)
371
370
371
+ catch2_native = static_library (
372
+ ' Catch2_native' ,
373
+ sources,
374
+ include_directories : ' ..' ,
375
+ native : true ,
376
+ build_by_default : meson .is_subproject() == false
377
+ )
378
+
379
+ catch2_native_dep = declare_dependency (
380
+ link_with : catch2_native,
381
+ include_directories : ' ..' ,
382
+ )
383
+
372
384
if get_option (' install' )
373
385
pkg.generate(
374
386
catch2,
@@ -384,7 +396,6 @@ catch2_with_main = static_library(
384
396
link_with : catch2,
385
397
include_directories : ' ..' ,
386
398
install : get_option (' install' ),
387
- native : true ,
388
399
build_by_default : meson .is_subproject() == false
389
400
)
390
401
@@ -393,6 +404,20 @@ catch2_with_main_dep = declare_dependency(
393
404
include_directories : ' ..' ,
394
405
)
395
406
407
+ catch2_with_main_native = static_library (
408
+ ' Catch2Main_native' ,
409
+ ' internal/catch_main.cpp' ,
410
+ link_with : catch2_native,
411
+ include_directories : ' ..' ,
412
+ install : get_option (' install' ),
413
+ build_by_default : meson .is_subproject() == false
414
+ )
415
+
416
+ catch2_with_main_native_dep = declare_dependency (
417
+ link_with : [catch2_native, catch2_with_main_native],
418
+ include_directories : ' ..' ,
419
+ )
420
+
396
421
if get_option (' install' )
397
422
pkg.generate(
398
423
catch2_with_main,
0 commit comments