From 7c2382a7e50b513eebf20617c5e584837486a717 Mon Sep 17 00:00:00 2001 From: FalconRay Date: Tue, 12 Oct 2021 10:36:24 +0800 Subject: [PATCH 1/2] Added compiling option for building debug. --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index bfb096d..bc59655 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,8 @@ project(yolanda C CXX) set(CMAKE_CXX_STANDARD 11) set(CMAKE_C_STANDARD 99) +set(CMAKE_VERBOSE_MAKEFILE off) + # Put the libaries and binaries that get built into directories at the # top of the build tree rather than in hard-to-find leaf directories. set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin) From 3295cf882237b5961401c06092e931a1047f30ed Mon Sep 17 00:00:00 2001 From: FalconRay Date: Tue, 12 Oct 2021 10:39:36 +0800 Subject: [PATCH 2/2] Fixed building error of aio_xxx undefined in chap-30 demo. --- chap-30/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chap-30/CMakeLists.txt b/chap-30/CMakeLists.txt index b7c3d40..6859b3d 100644 --- a/chap-30/CMakeLists.txt +++ b/chap-30/CMakeLists.txt @@ -1,2 +1,2 @@ add_executable(aio01 aio01.c) -target_link_libraries(aio01 yolanda) +target_link_libraries(aio01 yolanda rt)