mirror of
https://github.com/mpusz/mp-units.git
synced 2025-06-25 01:01:33 +02:00
build: Replace file(REAL_PATH ...)
with an alternative working with an older CMake versions
Resolves #282
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user