Skip to content

Commit 879af9e

Browse files
committed
Add namespace alias for inclusion in downstream projects
1 parent 618e0bf commit 879af9e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,10 @@ function(flibcpp_add_module name)
177177
)
178178
endif()
179179

180+
# Allow the library to be referred to by its namespaced version, for use by
181+
# downstream projects that *directly* compile flibcpp
182+
add_library(${FLIBCPP_NAMESPACE}${name} ALIAS ${name})
183+
180184
# Compile C++ code with C++11
181185
target_compile_features(${name}
182186
PRIVATE

0 commit comments

Comments
 (0)