From 10d31cde589e7400fec9169431a4d4d837fe23d0 Mon Sep 17 00:00:00 2001 From: Vitaly Chikunov Date: Tue, 7 Dec 2021 12:14:48 +0300 Subject: [PATCH] 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 --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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}) -- 2.39.5