mirror of
https://github.com/jmcnamara/libxlsxwriter
synced 2025-03-28 21:13:14 +00:00
Patch for issue #243, by specifying the new policy for <PackageName>_ROOT.
This commit is contained in:
parent
4e1ee88760
commit
153785ba83
@ -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…
x
Reference in New Issue
Block a user