mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 14:44:34 +00:00
warn when tracy_shared_libs and default_library mismatch
This commit is contained in:
parent
9342df020d
commit
a3774039f6
@ -1,4 +1,4 @@
|
||||
project('tracy', ['cpp'], version: '0.10.0', meson_version: '>=0.54.0')
|
||||
project('tracy', ['cpp'], version: '0.10.0', meson_version: '>=0.63.0')
|
||||
|
||||
# internal compiler flags
|
||||
tracy_compile_args = []
|
||||
@ -94,7 +94,11 @@ if get_option('tracy_no_crash_handler')
|
||||
tracy_common_args += ['-DTRACY_NO_CRASH_HANDLER']
|
||||
endif
|
||||
|
||||
tracy_shared_libs = get_option('default_library') == 'shared' or get_option('tracy_shared_libs')
|
||||
tracy_shared_libs = get_option('default_library') == 'shared'
|
||||
if tracy_shared_libs and not get_option('tracy_shared_libs')
|
||||
warning('tracy_shared_libs is set to false, but default_library is set to shared. Building shared library.')
|
||||
endif
|
||||
|
||||
if tracy_shared_libs
|
||||
tracy_compile_args += ['-DTRACY_EXPORTS']
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user