aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorVitaly Chikunov <vt@altlinux.org>2021-12-07 12:14:48 +0300
committerDmitry Belyavskiy <beldmit@users.noreply.github.com>2021-12-11 19:45:14 +0300
commit10d31cde589e7400fec9169431a4d4d837fe23d0 (patch)
treee412fd536c9f662551d5da962b893ed7543a8b15 /CMakeLists.txt
parent7255dcf52d88fb99468023466b0554d76a48f862 (diff)
downloadgost-engine-10d31cde589e7400fec9169431a4d4d837fe23d0.zip
gost-engine-10d31cde589e7400fec9169431a4d4d837fe23d0.tar.gz
gost-engine-10d31cde589e7400fec9169431a4d4d837fe23d0.tar.bz2
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 <vt@altlinux.org>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
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/$<CONFIG>/)
+else()
+ set(BIN_DIRECTORY bin)
+endif()
set(OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${BIN_DIRECTORY})