Skip to content

Commit d6682e6

Browse files
philippremyservantftransperfect
authored andcommitted
PATCH: Use NEW behavior of CMake policy CMP0117
CMake used to pass /GR (RTTI) as a CXX flag to MSVC. This will be removed with CMP0117. AliceVision however depends on RTTI due to usage of dynamic_cast() and typeid. Although MSVC has /GR (RTTI) enabled by default, ensure it is explicitly passed as a compiler flag for clarity. Signed-off-by: Philipp Remy <[email protected]>
1 parent d28822c commit d6682e6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ if (WIN32)
145145
endif()
146146
add_compile_options(/bigobj)
147147
add_compile_options(/MP)
148+
add_compile_options(/GR) # See policy CMP0117: Enable RTTI on MSVC
148149
endif()
149150
endif()
150151

0 commit comments

Comments
 (0)