mirror of
https://github.com/isledecomp/isle-portable.git
synced 2025-04-30 00:04:30 -04:00
Option to disable decomp asserts in MSVC (#1066)
This commit is contained in:
parent
4a861faca3
commit
0760e4e7d7
1 changed files with 3 additions and 1 deletions
|
@ -66,6 +66,7 @@ option(ISLE_BUILD_APP "Build ISLE.EXE application" ON)
|
||||||
cmake_dependent_option(ISLE_BUILD_CONFIG "Build CONFIG.EXE application" ON "NOT MINGW" OFF)
|
cmake_dependent_option(ISLE_BUILD_CONFIG "Build CONFIG.EXE application" ON "NOT MINGW" OFF)
|
||||||
option(ISLE_USE_SMARTHEAP "Build with SmartHeap" ${MSVC_FOR_DECOMP})
|
option(ISLE_USE_SMARTHEAP "Build with SmartHeap" ${MSVC_FOR_DECOMP})
|
||||||
option(ISLE_USE_DX5 "Build with internal DirectX 5 SDK" ON)
|
option(ISLE_USE_DX5 "Build with internal DirectX 5 SDK" ON)
|
||||||
|
option(ISLE_DECOMP_ASSERT "Assert struct size" ${MSVC_FOR_DECOMP})
|
||||||
cmake_dependent_option(ISLE_USE_DX5_LIBS "Build with internal DirectX 5 SDK Libraries" ON ISLE_USE_DX5 OFF)
|
cmake_dependent_option(ISLE_USE_DX5_LIBS "Build with internal DirectX 5 SDK Libraries" ON ISLE_USE_DX5 OFF)
|
||||||
|
|
||||||
add_cxx_warning(parentheses)
|
add_cxx_warning(parentheses)
|
||||||
|
@ -512,7 +513,8 @@ if (MSVC)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (MSVC_FOR_DECOMP)
|
if (ISLE_DECOMP_ASSERT)
|
||||||
|
message(STATUS "Decomp asserts enabled")
|
||||||
foreach(tgt IN LISTS lego1_targets)
|
foreach(tgt IN LISTS lego1_targets)
|
||||||
target_compile_definitions(${tgt} PRIVATE "ENABLE_DECOMP_ASSERTS")
|
target_compile_definitions(${tgt} PRIVATE "ENABLE_DECOMP_ASSERTS")
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue