]> Creatis software - bbtk.git/blobdiff - packages/std/CMakeLists.txt
Convert bbtk from GDCM to GDCM2 (cmakefiles and cxx files).
[bbtk.git] / packages / std / CMakeLists.txt
index 6e16f81633ff9510fb559424ab1a2396c75be93e..042d811702025fa755b8e36e867d6b5529d1327a 100644 (file)
@@ -116,7 +116,11 @@ SET(${BBTK_PACKAGE_NAME}_LIBS
   # EXCEPT : the same libs than for INCLUDE_DIRS 
   )
 #===========================================================================
-
+#===========================================================================
+# To compile with VS under x64, /bigobj flag is needed
+IF(MSVC AND CMAKE_SIZEOF_VOID_P MATCHES 8)
+       set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /bigobj")
+ENDIF()
 
 
 #===========================================================================