Skip to content
Snippets Groups Projects
Commit 4c18e3f7 authored by Stephen Hurd's avatar Stephen Hurd
Browse files

Some more mingw32 niceness

parent 5be447c5
No related branches found
No related tags found
No related merge requests found
......@@ -4,13 +4,13 @@ project (Cryptlib C)
include("ExternalProject")
find_program(UNZIP_PATH unzip REQUIRED)
find_program(MAKE_PATH NAMES make REQUIRED)
find_program(MAKE_PATH NAMES make mingw32-make REQUIRED)
find_program(PATCH_PATH NAMES patch REQUIRED)
find_program(ENV_PATH NAMES env REQUIRED)
find_program(SH_PATH NAMES sh REQUIRED)
if(CMAKE_C_COMPILER MATCHES "mingw")
set(MAKE_FLAGS MINGW32_NT-6.1 OSNAME=win32 RANLIB=${CMAKE_RANLIB} AR=${CMAKE_AR} CC=${CMAKE_C_COMPILER})
set(MAKE_FLAGS MINGW32_NT-6.1 OSNAME=win32 RANLIB=${CMAKE_RANLIB} AR=${CMAKE_AR} CC=${CMAKE_C_COMPILER} MAKE=${MAKE_PATH})
set(BUILD_CMD ${MAKE_PATH} ${MAKE_FLAGS})
else()
if("$ENV{CMAKE_BUILD_PARALLEL_LEVEL}" STREQUAL "")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment