mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 20:37:50 +08:00
8390d68837
* [discount] Add new package Discount * [discount] Add new package Discount * New package [Discount](https://github.com/Orc/discount) * Static build only * [discount] Fix arm* and *uwp builds * Discount needs to run `mktags.exe` to generate `blocktags`. This fix copy generated `blocktags` to `SOURCE_PATH` for arm\* builds and \*uwp builds. * [discount] Fix UWP and ARM check * [discount] Another fix for blocktags * [discount] And another one * [discount] And another one. Please squash these PR commits. Sorry I don't have UWP or ARM compiler installed on my machine. * [discount] Use definitions in msvc/Makefile * [discount] Add homepage
28 lines
809 B
Diff
28 lines
809 B
Diff
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
|
|
index 3895fdb..a183836 100644
|
|
--- a/cmake/CMakeLists.txt
|
|
+++ b/cmake/CMakeLists.txt
|
|
@@ -182,7 +182,10 @@ if(${PROJECT_NAME}_MAKE_INSTALL)
|
|
target_include_directories(libmarkdown INTERFACE
|
|
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
|
|
)
|
|
- set(_TARGETS libmarkdown markdown)
|
|
+ set(_TARGETS libmarkdown)
|
|
+ if(NOT ${PROJECT_NAME}_ONLY_LIBRARY)
|
|
+ set(_TARGETS ${_TARGETS} markdown)
|
|
+ endif()
|
|
if(${PROJECT_NAME}_INSTALL_SAMPLES)
|
|
list(APPEND _TARGETS mkd2html makepage)
|
|
endif()
|
|
diff --git a/cmake/config.h.in b/cmake/config.h.in
|
|
index e08220d..e630934 100644
|
|
--- a/cmake/config.h.in
|
|
+++ b/cmake/config.h.in
|
|
@@ -74,4 +74,6 @@
|
|
|
|
#define TABSTOP @TABSTOP@
|
|
|
|
+#define DESTRUCTOR
|
|
+
|
|
#endif /* _CONFIG_D */
|