Skip to content

Commit

Permalink
disable precompiled on debug
Browse files Browse the repository at this point in the history
  • Loading branch information
obligaron committed Sep 15, 2024
1 parent 9232c4d commit 58adaa1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,10 @@ set(_optimize_in_debug_srcs
utils/pcx_to_clx.cpp)
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
set_source_files_properties(${_optimize_in_debug_srcs} PROPERTIES COMPILE_OPTIONS "-O2;--param=max-vartrack-size=900000000")
set_source_files_properties(${_optimize_in_debug_srcs} PROPERTIES SKIP_PRECOMPILE_HEADERS TRUE)
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
set_source_files_properties(${_optimize_in_debug_srcs} PROPERTIES COMPILE_OPTIONS "-O2")
set_source_files_properties(${_optimize_in_debug_srcs} PROPERTIES SKIP_PRECOMPILE_HEADERS TRUE)
endif()

if(SUPPORTS_MPQ)
Expand Down

0 comments on commit 58adaa1

Please sign in to comment.