mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 14:15:54 -06:00
Patch for issue #243, by specifying the new policy for <PackageName>_ROOT.
This commit is contained in:
parent
4e1ee88760
commit
153785ba83
1 changed files with 10 additions and 0 deletions
|
|
@ -93,6 +93,16 @@ set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
|
|||
project(${PROJECT_NAME} C)
|
||||
enable_testing()
|
||||
|
||||
# POLICY
|
||||
# ------
|
||||
|
||||
# The use of the word ZLIB_ROOT should still work prior to "3.12.0",
|
||||
# just it's been generalized for all packages now. Just set the policy
|
||||
# to new, so we use it, and it will be used prior to 3.12 anyway.
|
||||
if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.12")
|
||||
cmake_policy(SET CMP0074 NEW)
|
||||
endif()
|
||||
|
||||
# OPTIONS
|
||||
# -------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue