build: fix ENABLE_LIRC=ON

Fix the `ENABLE_LIRC` cmake option, pass an interface specifier to
`target_compile_definitions()`.

Signed-off-by: Rafael Kitover <rkitover@gmail.com>
This commit is contained in:
Rafael Kitover 2024-09-13 15:29:16 +00:00
parent be09125d52
commit b3952d74a8
No known key found for this signature in database
GPG Key ID: 08AB596679D86240
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ endif()
if(ENABLE_LIRC)
target_link_libraries(vbam lirc_client)
target_compile_definitions(vbam VBAM_ENABLE_LIRC)
target_compile_definitions(vbam PUBLIC VBAM_ENABLE_LIRC)
endif()
if(WIN32)