Skip to content

Commit

Permalink
Fixes build issue with Catch2 catchorg/Catch2#2192
Browse files Browse the repository at this point in the history
Signed-off-by: Alexis Jeandet <[email protected]>
  • Loading branch information
jeandet committed Apr 5, 2022
1 parent 6b02756 commit ec3d633
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ install_headers(['./include/dict.hpp'], subdir : 'cppdict')
foreach test:['basic_dict_ops','stl_compatibility']
exe = executable(test,'test/'+test+'.cpp',
dependencies:[cppdict_dep],
cpp_args : '-DCATCH_CONFIG_NO_POSIX_SIGNALS',
include_directories: include_directories('test'),
install: false
)
Expand Down
2 changes: 2 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
add_executable(basic_dict_ops basic_dict_ops.cpp)
target_include_directories(basic_dict_ops PRIVATE ${CMAKE_CURRENT_LIST_DIR} ${CMAKE_CURRENT_LIST_DIR}/../include)
target_compile_definitions(basic_dict_ops PRIVATE CATCH_CONFIG_NO_POSIX_SIGNALS)
add_test(test_basic_dict_ops basic_dict_ops)

add_executable(stl_compatibility stl_compatibility.cpp)
target_include_directories(stl_compatibility PRIVATE ${CMAKE_CURRENT_LIST_DIR} ${CMAKE_CURRENT_LIST_DIR}/../include)
target_compile_definitions(stl_compatibility PRIVATE CATCH_CONFIG_NO_POSIX_SIGNALS)
add_test(test_stl_compatibility stl_compatibility)

0 comments on commit ec3d633

Please sign in to comment.