From a31f56e7b8be2d86d1fb17abf96551aeba1fa72b Mon Sep 17 00:00:00 2001 From: caiyuzheng <290198252@qq.com> Date: Sun, 15 Nov 2020 16:49:41 +0800 Subject: [PATCH] no message --- CMakeLists.txt | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ecd0a4e..43bfde9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,8 +13,8 @@ set(EVENT__HAVE_LIBEVENT 1) message(STATUS "libevent include: " ${libevent_INCLUDE_DIR}) message(STATUS "libevent lib: ${libevent_LIBRARIES}") message(STATUS "libevent lib Dirs: ${libevent_LIB_DIRS}") -message(STATUS "library files : $" ) - +message(STATUS "library files : " ) +message(STATUS $ ) SET(SRC_SDK sdk_main.c test/src/heapsort/main.c)#生成动态库需要至少包含一个源文件 add_library(generallib STATIC $ ${SRC_SDK}) message("CMAKE_BINARY_DIR is " ${CMAKE_BINARY_DIR}) @@ -31,25 +31,25 @@ target_link_libraries(generallib public message("current path is" ${CMAKE_CURRENT_SOURCE_DIR}) IF (WIN32) if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") - message("using clang") + #message("using clang") elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") - message("using gcc") - add_custom_command ( - TARGET generallib POST_BUILD - COMMAND ar -x - ${CMAKE_CURRENT_SOURCE_DIR}/libd/libevent.a - COMMENT "package library ar -x ${CMAKE_CURRENT_SOURCE_DIR}/libd/libevent.a " - ) - add_custom_command ( - TARGET generallib POST_BUILD - COMMAND ar rc libgeneral.a *.obj - COMMENT "package library ar rc *.o " - ) - add_custom_command( - TARGET generallib POST_BUILD - COMMAND del *.o *.obj - COMMENT "remove all step library" - ) + #message("using gcc") + #add_custom_command ( + # TARGET generallib POST_BUILD + # COMMAND ar -x + # ${CMAKE_CURRENT_SOURCE_DIR}/libd/libevent.a + # COMMENT "package library ar -x ${CMAKE_CURRENT_SOURCE_DIR}/libd/libevent.a " + #) + #add_custom_command ( + # TARGET generallib POST_BUILD + # COMMAND ar rc libgeneral.a *.obj + # COMMENT "package library ar rc *.o " + #) + #add_custom_command( + # TARGET generallib POST_BUILD + # COMMAND del *.o *.obj + # COMMENT "remove all step library" + #) # using GCC elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel") message("using asm")