mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-05 19:31:04 +00:00
Use CMake list
directives where appropriate
I think this communicates the intent a little better than using a `set` directive, and it makes the code a little less verbose, too.
This commit is contained in:
parent
818bca68d1
commit
03813a5b5e
2 changed files with 18 additions and 19 deletions
|
@ -1,7 +1,7 @@
|
|||
set(sound_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/sound.cpp)
|
||||
|
||||
if(USE_SOUND)
|
||||
set(sound_SRCS ${sound_SRCS}
|
||||
list(APPEND sound_SRCS
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/sound/al_extensions.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/sound/al_helpers.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/sound/ogg_file.cpp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue