Skip to content

Commit e4d543d

Browse files
committed
Fix merge issues
1 parent 2261fee commit e4d543d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

unittests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ foreach(TEST_SOURCE ${TESTS})
4545
add_test("${TEST_TARGET}" "${TEST_TARGET}")
4646

4747
# If we are on a 64-bit machine, create an extra 32-bit version of the test if portability testing is enabled
48-
if((${CMAKE_SIZEOF_VOID_P} EQUAL 8) AND (NOT SKIP_PORTABILITY_TEST))
48+
if((NOT MSVC) AND (${CMAKE_SIZEOF_VOID_P} EQUAL 8) AND (NOT SKIP_PORTABILITY_TEST))
4949
add_executable(${TEST_TARGET}_32 ${TEST_SOURCE})
5050
set_target_properties(${TEST_TARGET}_32 PROPERTIES
5151
COMPILE_FLAGS "-m32" LINK_FLAGS "-m32")

unittests/polymorphic.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,9 @@ struct PolyDerivedD : PolyBaseB, PolyBaseC
131131
};
132132

133133
CEREAL_REGISTER_TYPE(PolyDerivedD)
134+
#ifdef _MSC_VER
135+
CEREAL_REGISTER_POLYMORPHIC_RELATION(PolyBaseA, PolyDerivedD)
136+
#endif
134137

135138
struct PolyBase
136139
{

0 commit comments

Comments
 (0)