From e1d1866384bed760771a978dc6b9ee15a7acbc5c Mon Sep 17 00:00:00 2001 From: xgdgsc Date: Wed, 23 Sep 2020 16:05:42 +0800 Subject: [PATCH 1/2] add if using single header --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index e50b23f..a9ab409 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,7 @@ Moreover, in each case, you can provide either some string type for the file's p #include #include #include +// #include if using single header #include int main() @@ -78,6 +79,7 @@ for functions where character strings are expected (e.g. path parameters). ```c++ #include +// #include if using single header #include // for std::error_code #include // for std::printf #include From f4fa4292eb2a59933131576a2634a3f81fd889e3 Mon Sep 17 00:00:00 2001 From: Lefteris Kotsonis Date: Thu, 5 Nov 2020 21:38:59 +0200 Subject: [PATCH 2/2] fix duplicate target name in tests cmake --- test/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 3787691..652ede4 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -14,12 +14,12 @@ if(WIN32) add_test(NAME mio.unicode.test COMMAND mio.test) add_executable(mio.fullwinapi.test test.cpp) - target_link_libraries(mio.fullwinapi.test + target_link_libraries(mio.fullwinapi.test PRIVATE mio::mio_full_winapi) add_test(NAME mio.fullwinapi.test COMMAND mio.fullwinapi.test) - add_executable(mio.fullwinapi.test test.cpp) - target_link_libraries(mio.fullwinapi.test + add_executable(mio.minwinapi.test test.cpp) + target_link_libraries(mio.minwinapi.test PRIVATE mio::mio_min_winapi) add_test(NAME mio.minwinapi.test COMMAND mio.minwinapi.test) endif()