diff --git a/CMakeLists.txt b/CMakeLists.txt index b901704d34..61b026ead0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -118,7 +118,7 @@ elseif(CMAKE_C_COMPILER_ID MATCHES "GNU") set(GCC 1) endif() -if (UNIX AND NOT APPLE) +if (NOT WIN32 AND NOT APPLE) include(GNUInstallDirs) elseif(NOT DEFINED CMAKE_INSTALL_LIBDIR) set(CMAKE_INSTALL_LIBDIR "lib") @@ -737,7 +737,7 @@ if(FIPS) message(FATAL_ERROR "Building AWS-LC for FIPS requires Go and Perl") endif() - if(NOT BUILD_SHARED_LIBS AND NOT (UNIX AND NOT APPLE)) + if(NOT BUILD_SHARED_LIBS AND NOT (NOT WIN32 AND NOT APPLE)) message(FATAL_ERROR "Static FIPS build of AWS-LC is suported only on Linux") endif() diff --git a/crypto/CMakeLists.txt b/crypto/CMakeLists.txt index a503186815..adf7c805c5 100644 --- a/crypto/CMakeLists.txt +++ b/crypto/CMakeLists.txt @@ -44,7 +44,7 @@ function(msbuild_aarch64_asm) endfunction() if(NOT OPENSSL_NO_ASM) - if(UNIX) + if(NOT WIN32) if(ARCH STREQUAL "aarch64") # The "armx" Perl scripts look for "64" in the style argument # in order to decide whether to generate 32- or 64-bit asm. @@ -186,7 +186,7 @@ else() set(ASSEMBLY_SOURCE ${GENERATE_CODE_ROOT}/ios-arm/crypto/) elseif(APPLE) set(ASSEMBLY_SOURCE ${GENERATE_CODE_ROOT}/mac-${ARCH}/crypto/) - elseif(UNIX) + elseif(NOT WIN32) if(${ARCH} STREQUAL "generic") message(STATUS "Detected generic linux platform. No assembly files will be included.") else()