mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-29 01:29:35 +08:00
Merge pull request #1946 from jafj/EnableCMakePolicyCMP0077
Add support for CMake policy CMP0077
This commit is contained in:
@@ -15,6 +15,13 @@ message(STATUS "Build spdlog: ${SPDLOG_VERSION}")
|
||||
|
||||
include(GNUInstallDirs)
|
||||
|
||||
# ---------------------------------------------------------------------------------------
|
||||
# Set CMake policies to support later version behaviour
|
||||
# ---------------------------------------------------------------------------------------
|
||||
if(POLICY CMP0077)
|
||||
cmake_policy(SET CMP0077 NEW) # option() honors variables already set
|
||||
endif()
|
||||
|
||||
# ---------------------------------------------------------------------------------------
|
||||
# Set default build to release
|
||||
# ---------------------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user