From b9300bae08a77df6ef2efe2b62de14a13b10b9a4 Mon Sep 17 00:00:00 2001 From: Sai Praveen Bangaru <31557731+saipraveenb25@users.noreply.github.com> Date: Tue, 25 Mar 2025 10:56:55 -0700 Subject: Improve embed tool to search all include directories as determined by CMake (#6675) * Improve embed tool to search all include directories as determined by CMake Hopefully this puts an end to prelude generation issues. * Update CMakeLists.txt * Update CMakeLists.txt * Use Slang's string representation instead of malloc-ing chars --- prelude/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'prelude') diff --git a/prelude/CMakeLists.txt b/prelude/CMakeLists.txt index 27acd49f9..913809f07 100644 --- a/prelude/CMakeLists.txt +++ b/prelude/CMakeLists.txt @@ -12,8 +12,8 @@ foreach(input ${prelude_headers}) add_custom_command( OUTPUT ${output} COMMAND - slang-embed "${input}" "${CMAKE_CURRENT_LIST_DIR}/../include" - ${output} + slang-embed "${input}" ${output} + "-I$, -I>" DEPENDS ${input} slang-embed VERBATIM ) -- cgit v1.2.3