mirror of
https://github.com/Orc/discount.git
synced 2026-09-25 04:10:00 +03:00
Merge pull request #218 from nicolasfella/cmakefix
[cmake] Don't try to install markdown when building lib only
This commit is contained in:
@@ -192,7 +192,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)
|
||||
list(APPEND _TARGETS markdown)
|
||||
endif()
|
||||
if(${PROJECT_NAME}_INSTALL_SAMPLES)
|
||||
list(APPEND _TARGETS mkd2html makepage)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user