Skip to content

Commit 888189a

Browse files
committed
Trim
1 parent 7321bb7 commit 888189a

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

CMake/ystdlib-cpp-helpers.cmake

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
set(LIB_ENABLE_INSTALL ${YSTDLIB_CPP_ENABLE_INSTALL})
21
set(LIB_BUILD_INTERFACE ${YSTDLIB_CPP_BUILD_INCLUDE_DIRS})
32
set(LIB_INSTALL_INTERFACE ${YSTDLIB_CPP_INSTALL_INCLUDE_DIRS})
43

@@ -7,8 +6,8 @@ set(LIB_INSTALL_INTERFACE ${YSTDLIB_CPP_INSTALL_INCLUDE_DIRS})
76
# CMake function for adding C++ libraries with sources, dependencies, and build settings.
87
#
98
# Parameters:
9+
# NAME: name of the library target
1010
# NAMESPACE: namespace of the library
11-
# NAME: name of target
1211
function(cpp_library)
1312
set(options)
1413
set(oneValueArgs
@@ -24,12 +23,6 @@ function(cpp_library)
2423
${ARGN}
2524
)
2625

27-
if(LIB_ENABLE_INSTALL)
28-
set(_TARGET_LIB_NAME "${arg_cpp_lib_NAME}")
29-
else()
30-
set(_TARGET_LIB_NAME "${arg_cpp_lib_NAMESPACE}_${arg_cpp_lib_NAME}")
31-
endif()
32-
3326
add_library(${_TARGET_LIB_NAME} INTERFACE)
3427
target_include_directories(
3528
${_TARGET_LIB_NAME}

0 commit comments

Comments
 (0)