Skip to content

Commit 5d7b32d

Browse files
author
Oleh Kulykov
committed
1722264892
1 parent 283db5c commit 5d7b32d

File tree

1 file changed

+7
-16
lines changed

1 file changed

+7
-16
lines changed

CMakeLists.txt

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -98,31 +98,22 @@ More info: https://docs.microsoft.com/en-us/cpp/build/reference/md-mt-ld-use-run
9898

9999
# ---- definitions ----
100100
if (WIN32 OR WIN64)
101-
if (WIN32)
102-
message("WIN32")
103-
endif()
104-
if (WIN64)
105-
message("WIN64")
106-
endif()
107101
add_definitions(-DUNICODE=1)
108102
add_definitions(-D_UNICODE=1)
109-
endif()
110-
111-
if (MSVC)
112-
if (CMAKE_SIZEOF_VOID_P EQUAL 8)
113-
# Defined as 1 when the compilation target is 64-bit ARM or x64. Otherwise, undefined.
114-
message("MSVC 64")
103+
if (WIN64 OR CMAKE_SIZEOF_VOID_P EQUAL 8)
104+
message("WIN 64")
115105
add_definitions(-DWIN64=1)
116106
add_definitions(-D_WIN64=1)
117-
elseif (CMAKE_SIZEOF_VOID_P EQUAL 4)
118-
# Defined as 1 when the compilation target is 32-bit ARM, 64-bit ARM, x86, or x64. Otherwise, undefined.
119-
message("MSVC 32")
107+
elseif (WIN32 OR CMAKE_SIZEOF_VOID_P EQUAL 4)
108+
message("WIN 32")
120109
add_definitions(-DWIN32=1)
121110
add_definitions(-D_WIN32=1)
122111
else()
123-
message("MSVC undefined")
112+
message("WIN.. undefined")
124113
endif()
114+
endif()
125115

116+
if (MSVC)
126117
# Run-Time Library
127118
# https://learn.microsoft.com/en-us/cpp/build/reference/md-mt-ld-use-run-time-library
128119
if (LIBPLZMA_OPT_MSVC_MULTITHREAD_STATIC)

0 commit comments

Comments
 (0)