Skip to content

Commit

Permalink
fix: set and to MSVC only (#3139)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabime committed Nov 25, 2024
1 parent a2de136 commit 04bd12e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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/$<CONFIG>)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin/$<CONFIG>)
Expand Down

0 comments on commit 04bd12e

Please sign in to comment.