Skip to content

Commit

Permalink
set cmake policy CMP0054 to new
Browse files Browse the repository at this point in the history
fix issue #3115
  • Loading branch information
vigsterkr committed May 25, 2016
1 parent d33fbd9 commit 37bcb63
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Expand Up @@ -19,6 +19,11 @@ IF(POLICY CMP0042)
SET(CMAKE_POLICY_DEFAULT_CMP0042 NEW)
ENDIF(POLICY CMP0042)

IF(POLICY CMP0054)
CMAKE_POLICY(SET CMP0054 NEW)
SET(CMAKE_POLICY_DEFAULT_CMP0054 NEW)
ENDIF(POLICY CMP0054)

project(shogun)
cmake_minimum_required(VERSION 2.8.8)
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake")
Expand Down
2 changes: 1 addition & 1 deletion cmake/FindCCache.cmake
Expand Up @@ -12,7 +12,7 @@ else ()
find_package_handle_standard_args(CCache REQUIRED_VARS CCACHE)
endif ()

if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
if(${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")
SET(CCACHE_FLAGS "-Qunused-arguments -fcolor-diagnostics")
#set env CCACHE_CPP2=yes
SET(ENV{CCACHE_CPP} YES)
Expand Down

0 comments on commit 37bcb63

Please sign in to comment.