]> wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
CMake: Add CONFIG to the output dir if MSVC
authorVitaly Chikunov <vt@altlinux.org>
Tue, 7 Dec 2021 09:14:48 +0000 (12:14 +0300)
committerDmitry Belyavskiy <beldmit@users.noreply.github.com>
Sat, 11 Dec 2021 16:45:14 +0000 (19:45 +0300)
This will fix setting of OPENSSL_ENGINES in ctest on Windows.

Signed-off-by: Vitaly Chikunov <vt@altlinux.org>
CMakeLists.txt

index 0a53cba68293c2096ee0b29d98998d6523d9850f..c31469176a5b8365e8501b5dadd8266670e67b19 100644 (file)
@@ -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})