diff options
author | Peter Hill <zed.three@gmail.com> | 2020-12-04 15:43:47 (GMT) |
---|---|---|
committer | Peter Hill <zed.three@gmail.com> | 2020-12-04 17:21:19 (GMT) |
commit | 2292b6d856335b6c1ee352e9cb97d7a5b193c989 (patch) | |
tree | d4533e65862e1057c716ce1ac1174c4037f81ffe /googletest/cmake/internal_utils.cmake | |
parent | 93748a946684defd1494d5585dbc912e451e83f8 (diff) | |
download | googletest-2292b6d856335b6c1ee352e9cb97d7a5b193c989.zip googletest-2292b6d856335b6c1ee352e9cb97d7a5b193c989.tar.gz googletest-2292b6d856335b6c1ee352e9cb97d7a5b193c989.tar.bz2 |
CMake: Add namespaced ALIAS libraryrefs/pull/3155/head
Fixes #3125
Diffstat (limited to 'googletest/cmake/internal_utils.cmake')
-rw-r--r-- | googletest/cmake/internal_utils.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/googletest/cmake/internal_utils.cmake b/googletest/cmake/internal_utils.cmake index 37cf1ef..1442997 100644 --- a/googletest/cmake/internal_utils.cmake +++ b/googletest/cmake/internal_utils.cmake @@ -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(${cmake_package_name}::${name} ALIAS ${name}) set_target_properties(${name} PROPERTIES COMPILE_FLAGS "${cxx_flags}") |