aboutsummaryrefslogtreecommitdiff
path: root/cmake/compiler
diff options
context:
space:
mode:
authoripriver <g1ran1q@gmail.com>2020-06-22 15:27:03 +0300
committerPeter Keresztes Schmidt <carbenium@outlook.com>2020-06-24 14:42:02 +0200
commita46d047f9466c6f16597755bb7c771a9d1a147f2 (patch)
tree136303f021208e514db5c9b0fff1b65dc8d2d3cf /cmake/compiler
parentb210bb37130087d9a25a61dfb1b8baa60540c12c (diff)
fixed indentation for cmake files
Diffstat (limited to 'cmake/compiler')
-rw-r--r--cmake/compiler/clang/settings.cmake4
-rw-r--r--cmake/compiler/gcc/settings.cmake6
-rw-r--r--cmake/compiler/icc/settings.cmake4
-rw-r--r--cmake/compiler/mingw/settings.cmake4
-rw-r--r--cmake/compiler/msvc/settings.cmake2
5 files changed, 10 insertions, 10 deletions
diff --git a/cmake/compiler/clang/settings.cmake b/cmake/compiler/clang/settings.cmake
index 222271c8990..8e04f66abb2 100644
--- a/cmake/compiler/clang/settings.cmake
+++ b/cmake/compiler/clang/settings.cmake
@@ -13,7 +13,7 @@ if(WITH_WARNINGS)
-Wfatal-errors
-Wno-mismatched-tags
-Woverloaded-virtual)
-
+
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 10)
target_compile_options(trinity-warning-interface
INTERFACE
@@ -57,7 +57,7 @@ target_compile_options(trinity-compile-option-interface
-Wno-narrowing
-Wno-deprecated-register)
-if (BUILD_SHARED_LIBS)
+if(BUILD_SHARED_LIBS)
# -fPIC is needed to allow static linking in shared libs.
# -fvisibility=hidden sets the default visibility to hidden to prevent exporting of all symbols.
target_compile_options(trinity-compile-option-interface
diff --git a/cmake/compiler/gcc/settings.cmake b/cmake/compiler/gcc/settings.cmake
index a0dce55019c..cbb74526795 100644
--- a/cmake/compiler/gcc/settings.cmake
+++ b/cmake/compiler/gcc/settings.cmake
@@ -24,7 +24,7 @@ if(NOT CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")
message(STATUS "GCC: SFMT enabled, SSE2 flags forced")
endif()
-if( WITH_WARNINGS )
+if(WITH_WARNINGS)
target_compile_options(trinity-warning-interface
INTERFACE
-W
@@ -42,7 +42,7 @@ if( WITH_WARNINGS )
message(STATUS "GCC: All warnings enabled")
endif()
-if( WITH_COREDEBUG )
+if(WITH_COREDEBUG)
target_compile_options(trinity-compile-option-interface
INTERFACE
-g3)
@@ -68,7 +68,7 @@ if(ASAN)
message(STATUS "GCC: Enabled Address Sanitizer")
endif()
-if (BUILD_SHARED_LIBS)
+if(BUILD_SHARED_LIBS)
target_compile_options(trinity-compile-option-interface
INTERFACE
-fPIC
diff --git a/cmake/compiler/icc/settings.cmake b/cmake/compiler/icc/settings.cmake
index fd591440355..87187cc3a5c 100644
--- a/cmake/compiler/icc/settings.cmake
+++ b/cmake/compiler/icc/settings.cmake
@@ -12,7 +12,7 @@ else()
-xSSE2)
endif()
-if( WITH_WARNINGS )
+if(WITH_WARNINGS)
target_compile_options(trinity-warning-interface
INTERFACE
-w1)
@@ -20,7 +20,7 @@ if( WITH_WARNINGS )
message(STATUS "ICC: All warnings enabled")
endif()
-if( WITH_COREDEBUG )
+if(WITH_COREDEBUG)
target_compile_options(trinity-compile-option-interface
INTERFACE
-g)
diff --git a/cmake/compiler/mingw/settings.cmake b/cmake/compiler/mingw/settings.cmake
index 0268de93ff5..94cb2f9d522 100644
--- a/cmake/compiler/mingw/settings.cmake
+++ b/cmake/compiler/mingw/settings.cmake
@@ -19,7 +19,7 @@ target_compile_definitions(trinity-compile-option-interface
-D__SSE2__)
message(STATUS "GCC: SFMT enabled, SSE2 flags forced")
-if( WITH_WARNINGS )
+if(WITH_WARNINGS)
target_compile_options(trinity-warning-interface
INTERFACE
-W
@@ -33,7 +33,7 @@ if( WITH_WARNINGS )
message(STATUS "GCC: All warnings enabled")
endif()
-if( WITH_COREDEBUG )
+if(WITH_COREDEBUG)
target_compile_options(trinity-compile-option-interface
INTERFACE
-g3)
diff --git a/cmake/compiler/msvc/settings.cmake b/cmake/compiler/msvc/settings.cmake
index fea0eaf8a79..1d58f1b2cd3 100644
--- a/cmake/compiler/msvc/settings.cmake
+++ b/cmake/compiler/msvc/settings.cmake
@@ -128,7 +128,7 @@ if(NOT WITH_WARNINGS)
message(STATUS "MSVC: Disabled generic compiletime warnings")
endif()
-if (BUILD_SHARED_LIBS)
+if(BUILD_SHARED_LIBS)
# C4251: needs to have dll-interface to be used by clients of class '...'
# C4275: non dll-interface class ...' used as base for dll-interface class '...'
target_compile_options(trinity-compile-option-interface