Skip to content

Commit

Permalink
Merge pull request H-uru#1525 from Hoikas/fix_1524
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoikas authored Nov 12, 2023
2 parents e7af4c6 + b5b7f68 commit ab94eb9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions cmake/FindPhysX.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -228,12 +228,8 @@ macro(_find_physx_library SUFFIX)

# The PhysX headers require that either _DEBUG or NDEBUG is always
# defined (but not both at once), otherwise they produce an error.
# For release builds, NDEBUG is always automatically defined
# (either by CMake and/or the compilers).
# For debug builds, _DEBUG is automatically defined by MSVC,
# but for other compilers we need to define it ourselves.
target_compile_definitions(${TARGET} INTERFACE
$<$<AND:$<CONFIG:Debug>,$<NOT:$<CXX_COMPILER_ID:MSVC>>>:_DEBUG>
$<IF:$<CONFIG:Debug>,_DEBUG,NDEBUG>
)
endif()

Expand Down

0 comments on commit ab94eb9

Please sign in to comment.