Revert "Better support for newer CMake's"

This reverts commit 0eb01b832c.
This commit is contained in:
Victor Zverovich 2018-07-14 06:34:20 -07:00
parent a317448bd4
commit ae4a3945f5

View File

@ -1,15 +1,12 @@
cmake_minimum_required(VERSION 3.1.0...3.11) message(STATUS "CMake version: ${CMAKE_VERSION}")
if(${CMAKE_VERSION} VERSION_LESS 3.12) cmake_minimum_required(VERSION 3.1.0)
cmake_policy(VERSION ${CMAKE_VERSION})
endif()
# Determine if fmt is built as a subproject (using add_subdirectory) # Determine if fmt is built as a subproject (using add_subdirectory)
# or if it is the master project. # or if it is the master project.
set(MASTER_PROJECT OFF) set(MASTER_PROJECT OFF)
if (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR) if (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
set(MASTER_PROJECT ON) set(MASTER_PROJECT ON)
message(STATUS "CMake version: ${CMAKE_VERSION}")
endif () endif ()
# Joins arguments and places the results in ${result_var}. # Joins arguments and places the results in ${result_var}.