Skip to content

Commit

Permalink
Add QUILL_VERBOSE_MAKEFILE as a CMake option
Browse files Browse the repository at this point in the history
  • Loading branch information
odygrd committed Apr 11, 2020
1 parent b413fc7 commit 76d627a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* Daily file handler. The file handler rollover every 24 hours
* Rotating file handler. The file handler will rollover based on the size of the file
* MinGW compatibility
* Added a CMake option `QUILL_VERBOSE_MAKEFILE`. Building Quill as a master project now defaults to non verbose makefile output unless `-DQUILL_VERBOSE_MAKEFILE=ON` is passed to CMake.

## v1.0.0
Initial release
16 changes: 9 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,6 @@ if (NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
endif ()

#---------------------------------------------------------------------------------------
# Always verbose make file
#---------------------------------------------------------------------------------------
if (QUILL_MASTER_PROJECT)
set(CMAKE_VERBOSE_MAKEFILE TRUE CACHE BOOL "Verbose output" FORCE)
endif ()

#-------------------------------------------------------------------------------------------------------
# Required Packages
#-------------------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -97,10 +90,19 @@ endif ()
# Log Info
#-------------------------------------------------------------------------------------------------------
if (QUILL_MASTER_PROJECT)
option(QUILL_VERBOSE_MAKEFILE "Verbose make output" OFF)

message(STATUS "Build Type: " ${CMAKE_BUILD_TYPE})
message(STATUS "Quill Version: ${QUILL_VERSION}")
endif ()

#---------------------------------------------------------------------------------------
# Verbose make file option
#---------------------------------------------------------------------------------------
if (QUILL_VERBOSE_MAKEFILE)
set(CMAKE_VERBOSE_MAKEFILE TRUE CACHE BOOL "Verbose output" FORCE)
endif ()

#-------------------------------------------------------------------------------------------------------
# Additional Compiler Options
#-------------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit 76d627a

Please sign in to comment.