Skip to content

Commit 3b2bca9

Browse files
committed
Add /Zc:inline for MSVC builds
Enforce the C++11 rule that all functions declared inline must have a definition available in the same translation unit if they're used.
1 parent 6b53102 commit 3b2bca9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

cmake/Macros.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ function(tgui_set_global_compile_flags target)
5353
/permissive-
5454
/Zc:__cplusplus
5555
/Zc:preprocessor
56+
/Zc:inline
5657
)
5758
else()
5859
target_compile_options(${target} PRIVATE

0 commit comments

Comments
 (0)