build: Replace file(REAL_PATH ...) with an alternative working with an older CMake versions

Resolves #282
This commit is contained in:
Mateusz Pusz
2021-06-06 18:56:46 +02:00
parent 43825a531f
commit 4a9425d670

View File

@ -49,7 +49,7 @@ function(add_documentation targetName)
if(NOT _args_DOXYFILE_TEMPLATE)
set(_args_DOXYFILE_TEMPLATE Doxyfile.in)
endif()
file(REAL_PATH ${_args_DOXYFILE_TEMPLATE} _doxyfileIn)
get_filename_component(_doxyfileIn ${_args_DOXYFILE_TEMPLATE} REALPATH)
if(NOT EXISTS ${_doxyfileIn})
message(FATAL_ERROR "'${_args_DOXYFILE_TEMPLATE}' does not exist")
endif()