Skip to content

Commit ea40797

Browse files
committed
Fix libxml++ contrib library compiler options
Linking cgimap_common_compiler_options with INTERFACE scope is incorrect as that only applies to targets using the library but not the library itself. (Copy paste error from catch2 which is an interface library and can therefore only link to other libraries with INTERFACE scope)
1 parent 631eff8 commit ea40797

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ add_subdirectory(catch2)
55
add_subdirectory(libxml++)
66

77
target_link_libraries(catch2 INTERFACE cgimap_common_compiler_options)
8-
target_link_libraries(libxml++ INTERFACE cgimap_common_compiler_options)
8+
target_link_libraries(libxml++ PUBLIC cgimap_common_compiler_options)

0 commit comments

Comments
 (0)