We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2419064 + e01fb22 commit 9b40903Copy full SHA for 9b40903
CMakeLists.txt
@@ -21,11 +21,13 @@ if(NOT DEFINED CPPJIEBA_TOP_LEVEL_PROJECT)
21
endif()
22
23
24
-add_library(cppjieba INTERFACE)
25
-target_include_directories(cppjieba INTERFACE
26
- ${PROJECT_SOURCE_DIR}/include
27
- ${PROJECT_SOURCE_DIR}/deps/limonp/include
28
-)
+if(NOT TARGET cppjieba)
+ add_library(cppjieba INTERFACE)
+ target_include_directories(cppjieba INTERFACE
+ ${PROJECT_SOURCE_DIR}/include
+ ${PROJECT_SOURCE_DIR}/deps/limonp/include
29
+ )
30
+endif()
31
32
if(CPPJIEBA_TOP_LEVEL_PROJECT)
33
ENABLE_TESTING()
0 commit comments