Skip to content

Commit

Permalink
Fix CMAKE_DEPFILE_FLAGS_CXX setup
Browse files Browse the repository at this point in the history
  • Loading branch information
ClausKlein committed Oct 4, 2023
1 parent 047fa77 commit dd20753
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/options.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ endif()

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_DEBUG_POSTFIX D)
set(CMAKE_DEPFILE_FLAGS_CXX "-MMD")
if(UNIX AND CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
set(CMAKE_DEPFILE_FLAGS_CXX "-MMD -MT <DEP_TARGET> -MF <DEP_FILE>")
endif()

option(OPTION_ENABLE_UNITY "Enable Unity builds of project" ON)
option(OPTION_ENABLE_CLANG_TIDY "Enable clang-tdiy as prebuild step" OFF)
Expand Down

0 comments on commit dd20753

Please sign in to comment.