Skip to content

Commit

Permalink
clean up cmake file
Browse files Browse the repository at this point in the history
  • Loading branch information
sjsprecious committed Jan 31, 2025
1 parent 321cc7f commit 5bb8d60
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,9 @@ if (${CMAKE_HOST_SYSTEM_NAME} MATCHES "Linux" AND "${CMAKE_CXX_COMPILER_ID}" STR
endif()

# on Windows with MSVC, add the /bigobj flag to allow for large object files
if (${CMAKE_HOST_SYSTEM_NAME} MATCHES "Windows" AND ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC" OR "${CMAKE_CXX_COMPILER}" STREQUAL "clang-cl"))
if (${CMAKE_HOST_SYSTEM_NAME} MATCHES "Windows" AND "${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
# If the compiler is MSVC or Clang on Windows, use /bigobj
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj")
message(STATUS "Added /bigobj flag to CMAKE_CXX_FLAGS")
endif()

################################################################################
Expand Down

0 comments on commit 5bb8d60

Please sign in to comment.