Skip to content

Commit

Permalink
Reduce warnings, support #809
Browse files Browse the repository at this point in the history
  • Loading branch information
henryiii committed Jul 16, 2018
1 parent 8615ff2 commit efd8ee8
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
message(STATUS "CMake version: ${CMAKE_VERSION}")

cmake_minimum_required(VERSION 3.1.0)

# Use newer policies if available,
# up to most recent tested version of CMake
if(${CMAKE_VERSION} VERSION_LESS 3.11)
cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
else()
cmake_policy(VERSION 3.11)
endif()

# Determine if fmt is built as a subproject (using add_subdirectory)
# or if it is the master project.
set(MASTER_PROJECT OFF)
if (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
set(MASTER_PROJECT ON)
message(STATUS "CMake version: ${CMAKE_VERSION}")
endif ()

# Joins arguments and places the results in ${result_var}.
Expand Down

0 comments on commit efd8ee8

Please sign in to comment.