Skip to content

Commit 4414a1e

Browse files
committed
CMake, use 'NOT WIN32' instead of 'UNIX'
1 parent 39b3fae commit 4414a1e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ elseif(CMAKE_C_COMPILER_ID MATCHES "GNU")
118118
set(GCC 1)
119119
endif()
120120

121-
if (UNIX AND NOT APPLE)
121+
if (NOT WIN32 AND NOT APPLE)
122122
include(GNUInstallDirs)
123123
elseif(NOT DEFINED CMAKE_INSTALL_LIBDIR)
124124
set(CMAKE_INSTALL_LIBDIR "lib")
@@ -737,7 +737,7 @@ if(FIPS)
737737
message(FATAL_ERROR "Building AWS-LC for FIPS requires Go and Perl")
738738
endif()
739739

740-
if(NOT BUILD_SHARED_LIBS AND NOT (UNIX AND NOT APPLE))
740+
if(NOT BUILD_SHARED_LIBS AND NOT (NOT WIN32 AND NOT APPLE))
741741
message(FATAL_ERROR "Static FIPS build of AWS-LC is suported only on Linux")
742742
endif()
743743

crypto/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function(msbuild_aarch64_asm)
4444
endfunction()
4545

4646
if(NOT OPENSSL_NO_ASM)
47-
if(UNIX)
47+
if(NOT WIN32)
4848
if(ARCH STREQUAL "aarch64")
4949
# The "armx" Perl scripts look for "64" in the style argument
5050
# in order to decide whether to generate 32- or 64-bit asm.
@@ -186,7 +186,7 @@ else()
186186
set(ASSEMBLY_SOURCE ${GENERATE_CODE_ROOT}/ios-arm/crypto/)
187187
elseif(APPLE)
188188
set(ASSEMBLY_SOURCE ${GENERATE_CODE_ROOT}/mac-${ARCH}/crypto/)
189-
elseif(UNIX)
189+
elseif(NOT WIN32)
190190
if(${ARCH} STREQUAL "generic")
191191
message(STATUS "Detected generic linux platform. No assembly files will be included.")
192192
else()

0 commit comments

Comments
 (0)