diff options
author | Slávek Banko <[email protected]> | 2020-07-03 10:34:10 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2020-07-03 10:37:08 +0200 |
commit | 0d85298502dc04bd91dca9726c2783d76a0a434c (patch) | |
tree | 185d687ce046bd13ffea7847eb6165044edb5929 | |
parent | f53581749648f88e7d4e4aca4ae5b5c2b586e404 (diff) | |
download | kchmviewer-0d85298502dc04bd91dca9726c2783d76a0a434c.tar.gz kchmviewer-0d85298502dc04bd91dca9726c2783d76a0a434c.zip |
Use PATH in call get_filename_component instead of DIRECTORY
to ensure compatibility with CMake <= 2.8.11.
Signed-off-by: Slávek Banko <[email protected]>
(cherry picked from commit f6449dbda4a4fd4f97643a29e82f873dc7057fc2)
-rw-r--r-- | doc/CMakeLists.txt | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index 16eea36..0adf3d2 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -5,11 +5,10 @@ string( REGEX REPLACE "[ \r\n\t]+" ";" _linguas "$ENV{LINGUAS}" ) # base documentation file( GLOB _dirs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} * ) -list( REMOVE_ITEM _dirs "tdeioslave" ) +list( REMOVE_ITEM _dirs html man tdeioslave ) foreach( _dir IN LISTS _dirs ) if( IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${_dir} - AND NOT "${_dir}" STREQUAL "man" AND ( "${_dir}" STREQUAL "en" OR "${_linguas}" MATCHES "^;*$" OR ";${_linguas};" MATCHES ";${_dir};" )) @@ -36,7 +35,7 @@ endforeach() file( GLOB _dirs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}/tdeioslave tdeioslave/*/* ) foreach( _dir IN LISTS _dirs ) - get_filename_component( _lang ${_dir} DIRECTORY ) + get_filename_component( _lang ${_dir} PATH ) get_filename_component( _protocol ${_dir} NAME ) if( IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/tdeioslave/${_dir} AND NOT "${_lang}" STREQUAL "man" |