Skip to content

Commit

Permalink
This adds the prefix ada to a custom target to avoid conflicts. (#535)
Browse files Browse the repository at this point in the history
  • Loading branch information
lemire authored Oct 13, 2023
1 parent e982b30 commit d8f77a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions singleheader/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ if (Python3_Interpreter_FOUND)
#
DEPENDS amalgamate.py ada
)
add_custom_target(singleheader-files DEPENDS ${SINGLEHEADER_FILES})
add_custom_target(ada-singleheader-files DEPENDS ${SINGLEHEADER_FILES})

#
# Include this if you intend to #include "ada.cpp" in your own .cpp files.
#
add_library(ada-singleheader-include-source INTERFACE)
target_include_directories(ada-singleheader-include-source INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>)
add_dependencies(ada-singleheader-include-source singleheader-files)
add_dependencies(ada-singleheader-include-source ada-singleheader-files)

add_library(ada-singleheader-source INTERFACE)
target_sources(ada-singleheader-source INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/ada.cpp>)
Expand Down

0 comments on commit d8f77a1

Please sign in to comment.