vcpkg/ports/cpuid/fix-build.patch
Thomas1664 f571b30b86
[cpuid] Fix library linkage (#26545)
* [cpuid] Fix linkage

* Fix Windows build

* version
2022-08-29 13:19:20 -07:00

24 lines
641 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 08e78d4..9e84c7f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -26,5 +26,3 @@ endif(UNIX)
# Include subdirectories
add_subdirectory(libcpuid)
-add_subdirectory(cpuid_tool)
-add_subdirectory(tests)
diff --git a/libcpuid/CMakeLists.txt b/libcpuid/CMakeLists.txt
index 7031650..9355436 100644
--- a/libcpuid/CMakeLists.txt
+++ b/libcpuid/CMakeLists.txt
@@ -12,7 +12,7 @@ if("${MSVC_CXX_ARCHITECTURE_ID}" MATCHES "x64")
list(APPEND cpuid_sources masm-x64.asm)
endif()
-if(UNIX)
+if(0)
add_library(cpuid SHARED ${cpuid_sources})
else()
add_library(cpuid ${cpuid_sources})