From cff037342b0dc2cef2867026bb93c9a50d83430e Mon Sep 17 00:00:00 2001 From: sneaxiy <32832641+sneaxiy@users.noreply.github.com> Date: Fri, 17 Dec 2021 16:31:45 +0800 Subject: [PATCH] write includes.txt (#38210) --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 03f8522ad54..7c650b6ed7a 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -416,3 +416,7 @@ add_subdirectory(paddle) if(WITH_PYTHON) add_subdirectory(python) endif() + +get_directory_property(all_inc_dirs INCLUDE_DIRECTORIES) +list(JOIN all_inc_dirs "\r\n" all_inc_dirs) +file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/includes.txt" ${all_inc_dirs}) -- GitLab