File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -213,7 +213,6 @@ else()
213
213
214
214
# Set C++20
215
215
target_compile_features (${PROJECT_TARGET_LIB} PUBLIC cxx_std_20 )
216
- set_target_properties (${PROJECT_TARGET_LIB} PROPERTIES CXX_EXTENSIONS OFF )
217
216
# Set C99
218
217
target_compile_features (${PROJECT_TARGET_LIB} PUBLIC c_std_99 )
219
218
Original file line number Diff line number Diff line change @@ -15,16 +15,22 @@ get_property(CMARK_BINARY_DIR GLOBAL PROPERTY COMMONMARKER_BINARY_DIR)
15
15
enable_testing ()
16
16
17
17
add_executable (draw draw_test.cc mock-middleware.h )
18
+ target_compile_features (draw PUBLIC cxx_std_20 )
19
+ set_target_properties (draw PROPERTIES CXX_EXTENSIONS OFF )
18
20
target_include_directories (draw PRIVATE ${CMAKE_SOURCE_DIR} /src ${CMARK_BINARY_DIR} ${GTKMM_INCLUDE_DIRS} )
19
21
target_link_libraries (draw PRIVATE libreweb-browser-lib-draw ${GTKMM_LIBRARIES} LibCommonMarker gtest_main gmock_main )
20
22
add_test (NAME draw_test COMMAND draw )
21
23
22
24
add_executable (file file_test.cc )
25
+ target_compile_features (file PUBLIC cxx_std_20 )
26
+ set_target_properties (file PROPERTIES CXX_EXTENSIONS OFF )
23
27
target_include_directories (file PRIVATE ${CMAKE_SOURCE_DIR} /src )
24
28
target_link_libraries (file PRIVATE libreweb-browser-lib-file gtest_main )
25
29
add_test (NAME file_test COMMAND file )
26
30
27
31
add_executable (parser parser_test.cc )
32
+ target_compile_features (parser PUBLIC cxx_std_20 )
33
+ set_target_properties (parser PROPERTIES CXX_EXTENSIONS OFF )
28
34
target_include_directories (parser PRIVATE ${CMAKE_SOURCE_DIR} /src ${CMARK_BINARY_DIR} ${GTKMM_INCLUDE_DIRS} )
29
35
target_link_libraries (parser PRIVATE libreweb-browser-lib-parser ${GTKMM_LIBRARIES} LibCommonMarker gtest_main )
30
36
add_test (NAME parser_test COMMAND parser )
You can’t perform that action at this time.
0 commit comments