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

Use CMAKE_BUILD_TYPE as the configuration passed to msbuild

parent e388faee
Branches
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ if(WIN32)
find_program(UNZIP_PATH tar REQUIRED)
set(DOWNLOAD_CMD "${UNZIP_PATH}" -xf "${CMAKE_CURRENT_SOURCE_DIR}/dist/cryptlib.zip" -C "<SOURCE_DIR>")
find_program(MAKE_PATH NAMES msbuild REQUIRED)
set(BUILD_CMD ${MAKE_PATH} "<SOURCE_DIR>/crypt32.sln" -p:Configuration=Release -p:Platform=Win32)
set(BUILD_CMD ${MAKE_PATH} "<SOURCE_DIR>/crypt32.sln" -p:Configuration=${CMAKE_BUILD_TYPE} -p:Platform=Win32)
set(INSTALL_CMD ${CMAKE_CURRENT_SOURCE_DIR}/install.bat "<SOURCE_DIR>" "${Cryptlib_BINARY_DIR}")
else()
find_program(MAKE_PATH NAMES make mingw32-make REQUIRED)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment