Skip to content

Commit

Permalink
fix apple condition
Browse files Browse the repository at this point in the history
  • Loading branch information
cieslarmichal committed Jan 3, 2024
1 parent 839cda4 commit 46763ee
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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}
Expand Down

0 comments on commit 46763ee

Please sign in to comment.