소스 검색

MSVC flag for extended alignment added as option

add-code-of-conduct-1
Trevor Irons 5 년 전
부모
커밋
0171b9235d
2개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 5
    0
      CMakeLists.txt
  2. 1
    1
      Modules/FDEM1D/include/GQChave.h

+ 5
- 0
CMakeLists.txt 파일 보기

277
 	endif()
277
 	endif()
278
 endif()
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
 # Magic rpath flag
286
 # Magic rpath flag
282
 ####################
287
 ####################

+ 1
- 1
Modules/FDEM1D/include/GQChave.h 파일 보기

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

Loading…
취소
저장