void-packages/srcpkgs/tidy5/patches/link-dynlib.patch

16 lines
420 B
Diff
Raw Normal View History

2015-06-29 11:41:27 +00:00
--- CMakeLists.txt.orig
+++ CMakeLists.txt
2015-06-29 13:30:25 +00:00
@@ -157,7 +157,11 @@
2015-06-29 11:41:27 +00:00
set(name ${LIB_NAME})
set ( BINDIR console )
add_executable( ${name} ${BINDIR}/tidy.c )
-target_link_libraries( ${name} ${add_LIBS} )
2015-06-29 13:30:25 +00:00
+if (BUILD_SHARED_LIB)
+ target_link_libraries( ${name} tidy-share )
+else()
+ target_link_libraries( ${name} tidy-static )
+endif()
2015-06-29 11:41:27 +00:00
if (MSVC)
set_target_properties( ${name} PROPERTIES DEBUG_POSTFIX d )
endif ()