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}