From 46763ee77ad42de4030606dee66f17f6d311c5d1 Mon Sep 17 00:00:00 2001 From: Michal Cieslar Date: Wed, 3 Jan 2024 19:30:12 +0100 Subject: [PATCH] fix apple condition --- CMakeLists.txt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 07dba276e..10c36a462 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -113,8 +113,7 @@ target_include_directories( INTERFACE "${CMAKE_CURRENT_LIST_DIR}/include" PRIVATE "${CMAKE_CURRENT_LIST_DIR}/include") -if (CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang" - OR (WIN32 AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU")) +if (APPLE OR (WIN32 AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU")) add_subdirectory(externals/fmt) set(FMT_INCLUDE_DIR "${CMAKE_SOURCE_DIR}/externals/fmt/include") target_link_libraries(${LIBRARY_NAME} PRIVATE fmt) @@ -140,8 +139,7 @@ if (BUILD_FAKER_TESTS) target_link_libraries(${LIBRARY_NAME}-UT PRIVATE gtest_main gmock_main faker-cxx) - if (CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang" - OR (WIN32 AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU")) + if (APPLE OR (WIN32 AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU")) target_include_directories( ${LIBRARY_NAME}-UT PRIVATE ${FMT_INCLUDE_DIR} ${GTEST_INCLUDE_DIR}