Skip to content
This repository has been archived by the owner on Jan 15, 2025. It is now read-only.

Commit

Permalink
(maint) allow use of <LIB>_ROOT cmake settings via cmake_policy
Browse files Browse the repository at this point in the history
In order to set BOOST_ROOT or CURL_ROOT and have cmake correctly use
those locations instead of the defaults, enable the CMP0074 policy in
leatherman cmake builds.

See `cmake --help-policy CMP0074` for a description of the policy
  • Loading branch information
mcdonaldseanp committed Feb 12, 2024
1 parent a3ba2bd commit 22c6373
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
cmake_minimum_required(VERSION 3.2.2)
project(leatherman VERSION 1.12.12)

# Set the cmake policy that allows -D<LIB>_ROOT settings, so that you can point to a specific boost or curl
cmake_policy(SET CMP0074 NEW)

option(DYNAMICBASE "Add dynamicbase linker option" ON)
if (WIN32)
if (DYNAMICBASE)
Expand Down

0 comments on commit 22c6373

Please sign in to comment.