Skip to content

Commit e0b5843

Browse files
authored
Add rtti option
Add rtti option
2 parents 60a3e1b + ff6c7fd commit e0b5843

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Android")
2020
set(CMAKE_C_FLAGS "-Wno-error=unused-but-set-variable -Wno-error=strict-prototypes")
2121
endif()
2222

23+
# Add -frtti only for Linux and macOS
24+
if (NOT CMAKE_SYSTEM_NAME STREQUAL "Windows")
25+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -frtti")
26+
endif()
27+
2328
set(OPENSSL_USE_STATIC_LIBS TRUE)
2429
find_package(OpenSSL REQUIRED)
2530

0 commit comments

Comments
 (0)