From: Vitaly Chikunov Date: Tue, 7 Dec 2021 09:14:48 +0000 (+0300) Subject: CMake: Add CONFIG to the output dir if MSVC X-Git-Tag: v3.0.1~18 X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=10d31cde589e7400fec9169431a4d4d837fe23d0;p=openssl-gost%2Fengine.git CMake: Add CONFIG to the output dir if MSVC This will fix setting of OPENSSL_ENGINES in ctest on Windows. Signed-off-by: Vitaly Chikunov --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 0a53cba..c314691 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -88,7 +88,11 @@ if (NOT RELAXED_ALIGNMENT) add_definitions(-DSTRICT_ALIGNMENT) endif() -set(BIN_DIRECTORY bin) +if(MSVC) + set(BIN_DIRECTORY bin/$/) +else() + set(BIN_DIRECTORY bin) +endif() set(OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${BIN_DIRECTORY})