Browse Source

MSVC flag for extended alignment added as option

add-code-of-conduct-1
Trevor Irons 5 years ago
parent
commit
0171b9235d
2 changed files with 6 additions and 1 deletions
  1. 5
    0
      CMakeLists.txt
  2. 1
    1
      Modules/FDEM1D/include/GQChave.h

+ 5
- 0
CMakeLists.txt View File

@@ -277,6 +277,11 @@ if (LEMMA_USE_BOOST)
277 277
 	endif()
278 278
 endif()
279 279
 
280
+option( MSVC_EXTENDED_ALIGNMENT "Turn on MSVC compiler definition _ENABLE_EXTENDED_ALIGNED_STORAGE " OFF  )
281
+if (MSVC_EXTENDED_ALIGNMENT)
282
+    add_definitions(-D_ENABLE_EXTENDED_ALIGNED_STORAGE)
283
+endif()
284
+
280 285
 ####################
281 286
 # Magic rpath flag
282 287
 ####################

+ 1
- 1
Modules/FDEM1D/include/GQChave.h View File

@@ -43,7 +43,7 @@ namespace Lemma {
43 43
             GQChave ( const YAML::Node& node, const ctor_key& );
44 44
 
45 45
             /// Default destructor
46
-			~GQChave ();
46
+			virtual ~GQChave ();
47 47
 
48 48
             /**
49 49
              *  Returns shared_ptr to new GQChave.

Loading…
Cancel
Save