Skip to content

Commit

Permalink
cmake: Enable NEW behavior of policy 77
Browse files Browse the repository at this point in the history
This will let users set NasNas options from their project.
  • Loading branch information
Madour committed Feb 12, 2023
1 parent 6ea5afc commit 1ea931a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
cmake_minimum_required(VERSION 3.10)
if (POLICY CMP0074)
cmake_policy(SET CMP0074 NEW)
cmake_policy(SET CMP0074 NEW) # Enable CMake search paths defined by NasNas_ROOT variable
endif()
if (POLICY CMP0077)
cmake_policy(SET CMP0077 NEW) # NasNas options will not override user defined variable if they exist
endif()

project(
Expand Down

0 comments on commit 1ea931a

Please # to comment.