Skip to content

Commit

Permalink
Deal with CMP0042 in newer CMake.
Browse files Browse the repository at this point in the history
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
  • Loading branch information
hidmic committed Jul 22, 2020
1 parent 79a51a3 commit 1858560
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
cmake_minimum_required (VERSION 2.8)

project (Mimick C CXX)

if(POLICY CMP0042)
# No @rpath in target's install name
cmake_policy(SET CMP0042 OLD)
endif()

# Default to C++11
if(NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 11)
Expand Down

0 comments on commit 1858560

Please sign in to comment.