vcpkg/ports/libcopp/fix-x86-windows.patch

17 lines
547 B
Diff
Raw Normal View History

2023-02-11 02:48:00 +08:00
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 95ebe36..658c5e1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
2023-02-11 02:48:00 +08:00
@@ -25,6 +25,11 @@ project(
HOMEPAGE_URL "https://libcopp.atframe.work"
LANGUAGES C CXX ASM)
+# libcopp requires x86 to be called i386
+if(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86")
+ set(CMAKE_SYSTEM_PROCESSOR i386)
+endif()
+
# ######################################################################################################################
include("${PROJECT_SOURCE_DIR}/project/cmake/ProjectBuildOption.cmake")