summaryrefslogtreecommitdiffstats
path: root/googletest/cmake/internal_utils.cmake
diff options
context:
space:
mode:
authorPeter Hill <zed.three@gmail.com>2020-12-04 15:43:47 (GMT)
committerPeter Hill <zed.three@gmail.com>2020-12-04 17:21:19 (GMT)
commit2292b6d856335b6c1ee352e9cb97d7a5b193c989 (patch)
treed4533e65862e1057c716ce1ac1174c4037f81ffe /googletest/cmake/internal_utils.cmake
parent93748a946684defd1494d5585dbc912e451e83f8 (diff)
downloadgoogletest-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.cmake1
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}")