[CMAKE] CMakeLists.txt: Remove NO_UNDERSCORE_PREFIX leftovers

And switch to add_compile_definitions().

Addendum to 9efafd6.
This commit is contained in:
Serge Gautherie 2021-05-24 08:56:17 +02:00 committed by Jérôme Gardou
parent 59d4c11203
commit 2dcc40fb3e

View file

@ -274,9 +274,9 @@ Enable this if the module uses typeid or dynamic_cast. You will probably need to
if(ARCH STREQUAL "i386") if(ARCH STREQUAL "i386")
add_definitions(-DUSE_COMPILER_EXCEPTIONS -D_USE_32BIT_TIME_T) add_definitions(-DUSE_COMPILER_EXCEPTIONS -D_USE_32BIT_TIME_T)
elseif(ARCH STREQUAL "amd64") elseif(ARCH STREQUAL "amd64")
add_definitions(-DUSE_COMPILER_EXCEPTIONS -DNO_UNDERSCORE_PREFIX) add_compile_definitions(USE_COMPILER_EXCEPTIONS)
elseif(ARCH STREQUAL "arm") elseif(ARCH STREQUAL "arm")
add_definitions(-DUSE_COMPILER_EXCEPTIONS -DNO_UNDERSCORE_PREFIX) add_compile_definitions(USE_COMPILER_EXCEPTIONS)
endif() endif()
# Activate support for assembly source files # Activate support for assembly source files