Inline one-line functions
This commit is contained in:
parent
191961780f
commit
fea3c1d8d1
@ -90,11 +90,11 @@ adaptive_brightness_add_compile_flags(AdaptiveBrightness)
|
|||||||
adaptive_brightness_enable_warnings(AdaptiveBrightness)
|
adaptive_brightness_enable_warnings(AdaptiveBrightness)
|
||||||
|
|
||||||
if(${LOG_SOURCE_FILE})
|
if(${LOG_SOURCE_FILE})
|
||||||
adaptive_brightness_enable_source_file_log(AdaptiveBrightness)
|
target_compile_definitions(${target} PUBLIC LOG_SOURCE_LOCATION)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(${LOG_FUNCTION})
|
if(${LOG_FUNCTION})
|
||||||
adaptive_brightness_enable_function_name_log(AdaptiveBrightness)
|
target_compile_definitions(${target} PUBLIC LOG_FUNCTION_LOCATION)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set_property(DIRECTORY PROPERTY VS_STARTUP_PROJECT AdaptiveBrightness)
|
set_property(DIRECTORY PROPERTY VS_STARTUP_PROJECT AdaptiveBrightness)
|
||||||
|
@ -12,11 +12,3 @@ function(adaptive_brightness_enable_warnings target)
|
|||||||
target_compile_options(${target} PRIVATE /W3)
|
target_compile_options(${target} PRIVATE /W3)
|
||||||
endif()
|
endif()
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
function(adaptive_brightness_enable_source_file_log target)
|
|
||||||
target_compile_definitions(${target} PUBLIC LOG_SOURCE_LOCATION)
|
|
||||||
endfunction()
|
|
||||||
|
|
||||||
function(adaptive_brightness_enable_function_name_log target)
|
|
||||||
target_compile_definitions(${target} PUBLIC LOG_FUNCTION_LOCATION)
|
|
||||||
endfunction()
|
|
||||||
|
Loading…
Reference in New Issue
Block a user