diff options
author | Naios <naios-dev@live.de> | 2017-12-17 22:53:45 +0100 |
---|---|---|
committer | Naios <naios-dev@live.de> | 2017-12-20 04:04:28 +0100 |
commit | db5d5a03be4829928bd20c7d40a6f576f0b86478 (patch) | |
tree | a513ef0b85ac65bac5897f57e85cd9ff2726bd34 /cmake/compiler/msvc | |
parent | 891960edbe3768284a3892ae3edbe4afb6395e8f (diff) |
Build: Export a default interface which doesn't hide symbols in unix automatically
Diffstat (limited to 'cmake/compiler/msvc')
-rw-r--r-- | cmake/compiler/msvc/settings.cmake | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cmake/compiler/msvc/settings.cmake b/cmake/compiler/msvc/settings.cmake index eec3857e0d8..96197688d58 100644 --- a/cmake/compiler/msvc/settings.cmake +++ b/cmake/compiler/msvc/settings.cmake @@ -110,13 +110,13 @@ message(STATUS "MSVC: Disabled POSIX warnings") # Ignore specific warnings # C4351: new behavior: elements of array 'x' will be default initialized # C4091: 'typedef ': ignored on left of '' when no variable is declared -target_compile_options(trinity-warning-interface +target_compile_options(trinity-compile-option-interface INTERFACE /wd4351 /wd4091) if(NOT WITH_WARNINGS) - target_compile_options(trinity-warning-interface + target_compile_options(trinity-compile-option-interface INTERFACE /wd4996 /wd4355 @@ -132,7 +132,7 @@ endif() 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-warning-interface + target_compile_options(trinity-compile-option-interface INTERFACE /wd4251 /wd4275) @@ -143,7 +143,7 @@ endif() # Enable and treat as errors the following warnings to easily detect virtual function signature failures: # 'function' : member function does not override any base class virtual member function # 'virtual_function' : no override available for virtual member function from base 'class'; function is hidden -target_compile_options(trinity-warning-interface +target_compile_options(trinity-compile-option-interface INTERFACE /we4263 /we4264) |