Skip to content

Commit

Permalink
* FIX [cmake] #8 turn of log by default
Browse files Browse the repository at this point in the history
  • Loading branch information
JaylinYu authored and wanghaEMQ committed Feb 22, 2022
1 parent 1099bc7 commit daada51
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,18 @@ include(CheckCCompilerFlag)
include(GNUInstallDirs)

set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
SET(NOLOG 1 CACHE STRING "run NNG without printing log")

include(NNGHelpers)
include(NNGOptions)

if (NOLOG)
message("LOG=OFF")
add_definitions(-DNOLOG)
else ()
message("LOG=ON")
endif (NOLOG)

set(CMAKE_C_STANDARD 99)
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
list(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}" isSystemDir)
Expand Down

0 comments on commit daada51

Please sign in to comment.