File tree Expand file tree Collapse file tree 1 file changed +8
-13
lines changed Expand file tree Collapse file tree 1 file changed +8
-13
lines changed Original file line number Diff line number Diff line change @@ -89,12 +89,6 @@ function(cpp_library)
8989
9090 check_if_header_only(arg_cpp_lib_PRIVATE_SOURCES _IS_INTERFACE_LIB _)
9191 if (_IS_INTERFACE_LIB)
92- if (arg_cpp_lib_PRIVATE_LINK_LIBRARIES)
93- message (
94- FATAL_ERROR
95- "Private dependency specifications disabled for interface library target ${_ALIAS_TARGET_NAME} ."
96- )
97- endif ()
9892 add_library (${arg_cpp_lib_NAME} INTERFACE )
9993 target_include_directories (
10094 ${arg_cpp_lib_NAME}
@@ -118,16 +112,17 @@ function(cpp_library)
118112 PUBLIC
119113 "$<BUILD_INTERFACE:${arg_cpp_lib_BUILD_INCLUDE_DIR} >"
120114 )
121- target_link_libraries (
122- ${arg_cpp_lib_NAME}
123- PUBLIC
124- ${arg_cpp_lib_PUBLIC_LINK_LIBRARIES}
125- PRIVATE
126- ${arg_cpp_lib_PRIVATE_LINK_LIBRARIES}
127- )
128115 target_compile_features (${arg_cpp_lib_NAME} PUBLIC cxx_std_20)
129116 endif ()
130117
118+ target_link_libraries (
119+ ${arg_cpp_lib_NAME}
120+ PUBLIC
121+ ${arg_cpp_lib_PUBLIC_LINK_LIBRARIES}
122+ PRIVATE
123+ ${arg_cpp_lib_PRIVATE_LINK_LIBRARIES}
124+ )
125+
131126 add_library (${_ALIAS_TARGET_NAME} ALIAS ${arg_cpp_lib_NAME} )
132127
133128 if (YSTDLIB_CPP_ENABLE_TESTS)
You can’t perform that action at this time.
0 commit comments