From 30744665794825d85e82241912ef626477da9702 Mon Sep 17 00:00:00 2001 From: Eric Floyd Date: Mon, 1 Jan 2024 14:36:25 -0500 Subject: [PATCH] installs FMT if MinGW or AppleClang or Clang --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b34f72e09..37db4615d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -114,7 +114,7 @@ target_include_directories( PRIVATE "${CMAKE_CURRENT_LIST_DIR}/include" ) -if(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang") +if(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang" OR (MINGW AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU") OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang") add_subdirectory(externals/fmt) set(FMT_INCLUDE_DIR "${CMAKE_SOURCE_DIR}/externals/fmt/include") target_link_libraries(${LIBRARY_NAME} PRIVATE fmt)