Skip to content

Commit

Permalink
Merge pull request #221 from Cylix/CMP0048
Browse files Browse the repository at this point in the history
Fix CMake policy CMP0048 for project using CMake 3+
  • Loading branch information
whoshuu committed Oct 25, 2017
2 parents 0614fbf + 501b7bb commit d3af63a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
cmake_minimum_required(VERSION 2.8.7)

if(POLICY CMP0048)
# cmake warns if loaded from a min-3.0-required parent dir, so silence the warning:
cmake_policy(SET CMP0048 NEW)
endif()

# Allow use of project folders for IDEs like Visual Studio, so we
# could organize projects into relevant folders: "cpr", "tests" & "external (libraries)".
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
Expand Down

0 comments on commit d3af63a

Please sign in to comment.