Skip to content

Commit d8f77a1

Browse files
authored
This adds the prefix ada to a custom target to avoid conflicts. (#535)
1 parent e982b30 commit d8f77a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

singleheader/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ if (Python3_Interpreter_FOUND)
3737
#
3838
DEPENDS amalgamate.py ada
3939
)
40-
add_custom_target(singleheader-files DEPENDS ${SINGLEHEADER_FILES})
40+
add_custom_target(ada-singleheader-files DEPENDS ${SINGLEHEADER_FILES})
4141

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

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

0 commit comments

Comments
 (0)