cmark

My personal build of CMark ✏️

Commit
102d254eb8195c69875e6d629d47da83b3b51568
Parent
a9f67da092cfc81e7e82269666278a5463543c28
Author
John MacFarlane <jgm@berkeley.edu>
Date

Merge pull request #265 from compnerd/upstream-windows-cross-compile

build: only attempt to install MSVC system libraries on Windows

Diffstat

1 file changed, 4 insertions, 2 deletions

Status File Name N° Changes Insertions Deletions
Modified src/CMakeLists.txt 6 4 2
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
@@ -128,11 +128,13 @@ if (MSVC)
     APPEND PROPERTY LINK_FLAGS /INCREMENTAL:NO)
 endif(MSVC)
 
-set(CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS ON)
+if(NOT MSVC OR CMAKE_HOST_SYSTEM_NAME STREQUAL Windows)
+  set(CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS ON)
+  include(InstallRequiredSystemLibraries)
+endif()
 
 set(libdir lib${LIB_SUFFIX})
 
-include (InstallRequiredSystemLibraries)
 install(TARGETS ${PROGRAM} ${CMARK_INSTALL}
   EXPORT cmark
   RUNTIME DESTINATION bin