|
@@ -3,10 +3,16 @@ if(NOT MSVC)
|
|
|
enable_if_supported(COMPILER_FLAGS "-Wall")
|
|
|
endif()
|
|
|
|
|
|
+enable_if_supported(COMPILER_FLAGS "-Wshorten-64-to-32")
|
|
|
enable_if_supported(COMPILER_FLAGS "-fno-omit-frame-pointer")
|
|
|
enable_if_supported(COMPILER_FLAGS "-mmacosx-version-min=10.9")
|
|
|
enable_if_supported(COMPILER_FLAGS "/Oy-")
|
|
|
|
|
|
+# Flags only for external libs
|
|
|
+enable_if_supported(COMPILER_FLAGS_THIRD_PARTY "-Wno-shorten-64-to-32")
|
|
|
+enable_if_supported(COMPILER_FLAGS_THIRD_PARTY "/wd4244")
|
|
|
+enable_if_supported(COMPILER_FLAGS_THIRD_PARTY "/wd4267")
|
|
|
+
|
|
|
enable_if_links(LINK_FLAGS "-flto")
|
|
|
enable_if_links(LINK_FLAGS "-fuse-ld=gold")
|
|
|
|