Skip to content

Commit

Permalink
fix: correct typo and use robust commands (#123)
Browse files Browse the repository at this point in the history
* fix: correct typo and use robust commands

Signed-off-by: msclock <msclock@qq.com>

* simplify

Signed-off-by: msclock <msclock@qq.com>

---------

Signed-off-by: msclock <msclock@qq.com>
  • Loading branch information
msclock authored Sep 24, 2024
1 parent ab5e33f commit 4a19cf2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cmake/configure/Common.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,8 @@ function(target_include_interface_directories target)
set(_includes)
foreach(_include_dir ${ARGN})
# Make include_dir absolute
cmake_path(IS_RELATIVE _include_dir _is_relative)
if(_is_relative)
set(_include_dir "${CMAKE_CURRENT_SOURCE_DIR}/${include_dir}")
endif()
cmake_path(ABSOLUTE_PATH _include_dir BASE_DIRECTORY
${CMAKE_CURRENT_SOURCE_DIR})
list(APPEND _includes $<BUILD_INTERFACE:${_include_dir}>)
endforeach()

Expand Down

0 comments on commit 4a19cf2

Please sign in to comment.