From fc3ffa3b5b62604cdaa23eec0efe9e79d170c133 Mon Sep 17 00:00:00 2001 From: halx99 Date: Thu, 13 May 2021 01:03:11 +0800 Subject: [PATCH] Improve cmake [ci build] --- external/CMakeLists.txt | 1 + external/pugixml/CMakeLists.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt index 1bff57b136..46ac93e930 100644 --- a/external/CMakeLists.txt +++ b/external/CMakeLists.txt @@ -99,6 +99,7 @@ if(BUILD_EXT_CHIPMUNK) endif(BUILD_EXT_CHIPMUNK) if(BUILD_EXT_FREETYPE) set(FT_WITH_ZLIB ON CACHE BOOL "Use system zlib instead of internal library." FORCE) + set(DISABLE_FORCE_DEBUG_POSTFIX ON CACHE BOOL "" FORCE) add_subdirectory(freetype) target_include_directories(external PUBLIC "freetype/include") target_link_libraries(external freetype) diff --git a/external/pugixml/CMakeLists.txt b/external/pugixml/CMakeLists.txt index d238181107..3d3fbe9c0b 100644 --- a/external/pugixml/CMakeLists.txt +++ b/external/pugixml/CMakeLists.txt @@ -32,4 +32,5 @@ set_target_properties(${target_name} set_target_properties(${target_name} PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_CURRENT_SOURCE_DIR}" + INTERFACE_COMPILE_DEFINITIONS PUGIXML_API=__declspec\(dllimport\) )