LargeAdressaware option and don't warn about variadic macros
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@966 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
@@ -15,11 +15,11 @@ if ( WIN32 )
|
|||||||
set( ADDITIONAL_CMAKE_MODULE_LINKER_FLAGS )
|
set( ADDITIONAL_CMAKE_MODULE_LINKER_FLAGS )
|
||||||
|
|
||||||
if ( WINDOWS_LARGE_MEMORY_SUPPORT )
|
if ( WINDOWS_LARGE_MEMORY_SUPPORT )
|
||||||
if( NOT "${CMAKE_GENERATOR}" MATCHES "MinGW Makefiles")
|
if( NOT "${CMAKE_GENERATOR}" MATCHES "MinGW Makefiles")
|
||||||
list(APPEND ADDITIONAL_CMAKE_EXE_LINKER_FLAGS "/LARGEADDRESSAWARE" )
|
list(APPEND ADDITIONAL_CMAKE_EXE_LINKER_FLAGS "/LARGEADDRESSAWARE" )
|
||||||
list(APPEND ADDITIONAL_CMAKE_SHARED_LINKER_FLAGS "/LARGEADDRESSAWARE" )
|
list(APPEND ADDITIONAL_CMAKE_SHARED_LINKER_FLAGS "/LARGEADDRESSAWARE" )
|
||||||
list(APPEND ADDITIONAL_CMAKE_MODULE_LINKER_FLAGS "/LARGEADDRESSAWARE" )
|
list(APPEND ADDITIONAL_CMAKE_MODULE_LINKER_FLAGS "/LARGEADDRESSAWARE" )
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
@@ -104,11 +104,13 @@ if (UNIX)
|
|||||||
|
|
||||||
IF ( APPLE )
|
IF ( APPLE )
|
||||||
# Skip unused parameters as it has to be used for the documentation via doxygen and the interfaces
|
# Skip unused parameters as it has to be used for the documentation via doxygen and the interfaces
|
||||||
set ( COMPILER_WARNINGS "-W" "-Wall" "-Wno-unused" "-Wextra" "-Wno-non-virtual-dtor" "-Wno-unused-parameter" CACHE STRINGLIST "This list contains the warning flags used during compilation " )
|
set ( COMPILER_WARNINGS "-W" "-Wall" "-Wno-unused" "-Wextra" "-Wno-non-virtual-dtor" "-Wno-unused-parameter" "-Wno-variadic-macros" CACHE STRINGLIST "This list contains the warning flags used during compilation " )
|
||||||
|
elseif ("${CMAKE_CXX_COMPILER} ${CMAKE_CXX_COMPILER_ARG1}" MATCHES ".*clang")
|
||||||
|
set ( COMPILER_WARNINGS "-W" "-Wall" "-Wextra" "-Wno-non-virtual-dtor" "-Wno-unused-parameter" "-Wno-variadic-macros" CACHE STRINGLIST "This list contains the warning flags used during compilation " )
|
||||||
ELSEIF ( CMAKE_SYSTEM MATCHES "SunOS*" )
|
ELSEIF ( CMAKE_SYSTEM MATCHES "SunOS*" )
|
||||||
set ( COMPILER_WARNINGS "" CACHE STRINGLIST "This list contains the warning flags used during compilation " )
|
set ( COMPILER_WARNINGS "" CACHE STRINGLIST "This list contains the warning flags used during compilation " )
|
||||||
ELSE ()
|
ELSE ()
|
||||||
set ( COMPILER_WARNINGS "-W" "-Wall" "-Wno-unused" "-Wextra" CACHE STRINGLIST "This list contains the warning flags used during compilation " )
|
set ( COMPILER_WARNINGS "-W" "-Wall" "-Wno-unused" "-Wextra" "-Wno-variadic-macros" CACHE STRINGLIST "This list contains the warning flags used during compilation " )
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
endif ( NOT COMPILER_WARNINGS )
|
endif ( NOT COMPILER_WARNINGS )
|
||||||
|
|||||||
Reference in New Issue
Block a user