Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
Signed-off-by: msclock <msclock@qq.com>
  • Loading branch information
msclock committed Sep 24, 2024
1 parent 9534dcf commit 2e0c324
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions cmake/configure/Common.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +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)
cmake_path(ABSOLUTE_PATH _include_dir BASE_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
OUTPUT_VARIABLE _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 2e0c324

Please sign in to comment.