From 04bd12e0b57469f2727fcd18408f2b552417e4c4 Mon Sep 17 00:00:00 2001 From: gabime Date: Mon, 25 Nov 2024 09:40:05 +0200 Subject: [PATCH] fix: set and to MSVC only (#3139) --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0248745d..db662a20 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -125,7 +125,7 @@ if(SPDLOG_BUILD_SHARED) set(CMAKE_POSITION_INDEPENDENT_CODE ON) endif() -if(MSVC) +if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") # place dlls and libs and executables in the same directory set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin/$) set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin/$)