Skip to content
Snippets Groups Projects
Commit dc612eb9 authored by Marcel Loose's avatar Marcel Loose :sunglasses:
Browse files

Task #9533: Oops! The CMake command get_filename_component() only recently...

Task #9533: Oops! The CMake command get_filename_component() only recently supports DIRECTORY; use PATH instead.
parent bb12d7b0
No related branches found
No related tags found
No related merge requests found
...@@ -174,7 +174,7 @@ if(NOT DEFINED LOFAR_MACROS_INCLUDED) ...@@ -174,7 +174,7 @@ if(NOT DEFINED LOFAR_MACROS_INCLUDED)
# -------------------------------------------------------------------------- # --------------------------------------------------------------------------
macro(lofar_add_sysconf_files) macro(lofar_add_sysconf_files)
foreach(_name ${ARGN}) foreach(_name ${ARGN})
get_filename_component(_path ${_name} DIRECTORY) get_filename_component(_path ${_name} PATH)
get_filename_component(_abs_name ${_name} ABSOLUTE) get_filename_component(_abs_name ${_name} ABSOLUTE)
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/etc/${_path}) file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/etc/${_path})
execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment