-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
91d7608
commit ddfbe42
Showing
2 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
diff --git a/libcpuid/CMakeLists.txt b/libcpuid/CMakeLists.txt | ||
index 09189ef..7056387 100644 | ||
index 09189ef..3e30bf3 100644 | ||
--- a/libcpuid/CMakeLists.txt | ||
+++ b/libcpuid/CMakeLists.txt | ||
@@ -21,7 +21,7 @@ if(UNIX) | ||
add_compile_definitions(_GNU_SOURCE) | ||
endif(UNIX) | ||
|
||
-if("${MSVC_CXX_ARCHITECTURE_ID}" MATCHES "x64") | ||
+if(MSVC) | ||
+if(MSVC AND CMAKE_SYSTEM_PROCESSOR MATCHES ".*64$") | ||
list(APPEND cpuid_sources masm-x64.asm) | ||
endif() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters