File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ option (pfs_BUILD_TESTS "Build tests" ON)
31
31
# Actual configuration
32
32
# ------------------------------------------------------------------------
33
33
34
- add_compile_options (-std=c++11 - Wall -Wextra -pedantic -Werror)
34
+ add_compile_options (-Wall -Wextra -pedantic -Werror)
35
35
36
36
set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /out)
37
37
set (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /lib)
@@ -43,6 +43,7 @@ aux_source_directory (${pfs_ROOT_SOURCE_DIR}/parsers pfs_PARSERS_SOURCES)
43
43
set (SOURCES ${pfs_ROOT_SOURCES} ${pfs_PARSERS_SOURCES} )
44
44
45
45
add_library (pfs ${pfs_SHARED_OR_STATIC} ${SOURCES} )
46
+ target_compile_features (pfs PUBLIC cxx_std_11)
46
47
target_include_directories (
47
48
pfs PUBLIC
48
49
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /include >
@@ -64,13 +65,15 @@ endif ()
64
65
if (pfs_BUILD_SAMPLES)
65
66
aux_source_directory (sample pfs_SAMPLE_SOURCES)
66
67
add_executable (sample ${pfs_SAMPLE_SOURCES} )
68
+ target_compile_features (sample PUBLIC cxx_std_11)
67
69
target_link_libraries (sample PRIVATE pfs)
68
70
endif ()
69
71
70
72
if (pfs_BUILD_TESTS)
71
73
set (pfs_UNITTEST_SOURCE_DIR test )
72
74
aux_source_directory (${pfs_UNITTEST_SOURCE_DIR} pfs_UNITTEST_SOURCES)
73
75
add_executable (unittest ${pfs_UNITTEST_SOURCES} )
76
+ target_compile_features (unittest PUBLIC cxx_std_11)
74
77
target_link_libraries (unittest PRIVATE pfs)
75
78
endif ()
76
79
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ int enum_net(std::vector<std::string>&& args)
35
35
36
36
auto dev = net.get_dev ();
37
37
print (dev);
38
-
38
+
39
39
auto icmp = net.get_icmp ();
40
40
print (icmp);
41
41
@@ -66,8 +66,8 @@ int enum_net(std::vector<std::string>&& args)
66
66
auto udplite6 = net.get_udplite6 ();
67
67
print (udplite6);
68
68
69
- auto unix = net.get_unix ();
70
- print (unix );
69
+ auto unix_ = net.get_unix ();
70
+ print (unix_ );
71
71
72
72
auto netlink = net.get_netlink ();
73
73
print (netlink);
You can’t perform that action at this time.
0 commit comments