Skip to content

Commit

Permalink
Add one more CMake warning fix
Browse files Browse the repository at this point in the history
This will remove one more warning that can't be stopped from a calling CMakeLists. This possibly should be set to new at some point (CMake 3.3 behavior would be different / better), as well as 0048.
  • Loading branch information
henryiii authored and vitaut committed Aug 19, 2017
1 parent 032c838 commit 6efbccb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ message(STATUS "CMake version: ${CMAKE_VERSION}")

cmake_minimum_required(VERSION 2.8.12)

if (POLICY CMP0048)
if (POLICY CMP0048) # Version variables
cmake_policy(SET CMP0048 OLD)
endif ()

if (POLICY CMP0063) # Visibility
cmake_policy(SET CMP0063 OLD)
endif (POLICY CMP0063)

# Determine if fmt is built as a subproject (using add_subdirectory)
# or if it is the master project.
set(MASTER_PROJECT OFF)
Expand Down

0 comments on commit 6efbccb

Please sign in to comment.