summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorAllen Winter <allen.winter@kdab.com>2022-02-21 11:58:35 -0500
committerAllen Winter <allen.winter@kdab.com>2022-02-21 11:58:35 -0500
commit37825bc6013e0344cabfa6679f8fc91a2c1a52f0 (patch)
tree1787427e62e81312519bbecb06360a8a51d72731 /cmake
parent0892379d877ca44fd0c6580dae36b2ab22fefd46 (diff)
downloadlibical-git-37825bc6013e0344cabfa6679f8fc91a2c1a52f0.tar.gz
LibIcalMacrosInternal.cmake - improve libical_deprecated_option()
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/LibIcalMacrosInternal.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmake/modules/LibIcalMacrosInternal.cmake b/cmake/modules/LibIcalMacrosInternal.cmake
index cbea8155..ed197a15 100644
--- a/cmake/modules/LibIcalMacrosInternal.cmake
+++ b/cmake/modules/LibIcalMacrosInternal.cmake
@@ -11,7 +11,10 @@ endfunction()
function(libical_deprecated_option deprecated_option option description)
set(extra_option_arguments ${ARGN})
- message(STATUS "WARNING: ${deprecated_option} is deprecated. Use ${option} instead")
+ if(${deprecated_option})
+ message(WARNING "${deprecated_option} is deprecated. Use ${option} instead")
+ set(${option} ${deprecated_option} CACHE BOOL "${description}")
+ endif()
libical_option(${option} "${description}" ${extra_option_arguments})
endfunction()