Skip to content

Commit

Permalink
CMake: Add namespaced ALIAS library
Browse files Browse the repository at this point in the history
  • Loading branch information
ZedThree committed Dec 4, 2020
1 parent 93748a9 commit cc6ac63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions googletest/cmake/internal_utils.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ function(cxx_library_with_type name type cxx_flags)
# type can be either STATIC or SHARED to denote a static or shared library.
# ARGN refers to additional arguments after 'cxx_flags'.
add_library(${name} ${type} ${ARGN})
add_library(GTest::${name} ALIAS ${name})
set_target_properties(${name}
PROPERTIES
COMPILE_FLAGS "${cxx_flags}")
Expand Down

0 comments on commit cc6ac63

Please sign in to comment.