Skip to content

Commit

Permalink
Fix python sdist
Browse files Browse the repository at this point in the history
Co-authored-by: Tom Jakubowski <tom@crystae.net>
  • Loading branch information
timbess and tomjakubowski committed Dec 21, 2023
1 parent 9bc4d25 commit 380374a
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions cpp/perspective/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -675,12 +675,20 @@ else()
set(CLANGD_ADD_FLAGS "")
endif()

# Configure the .clangd file from the template
configure_file(
${CMAKE_SOURCE_DIR}/.clangd.in
${CMAKE_BINARY_DIR}/.clangd
@ONLY
)

# Check for existence of .clangd file
if(EXISTS ${CMAKE_SOURCE_DIR}/.clangd.in)
message(STATUS "${Cyan}Found ${CMAKE_SOURCE_DIR}/.clangd.in${ColorReset}")
# Configure the .clangd file from the template
configure_file(
${CMAKE_SOURCE_DIR}/.clangd.in
${CMAKE_BINARY_DIR}/.clangd
@ONLY
)
message(STATUS "${Cyan}Created ${CMAKE_BINARY_DIR}/.clangd${ColorReset}")
else()
message("${Yellow}No .clangd.in found, skipping IDE setup${ColorReset}")
endif()

# On MacOS this includes the entire /opt/homebrew/include directory which
# will mask local includes and cause mysterious compile errors in libre2 and
Expand Down

0 comments on commit 380374a

Please # to comment.