mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 03:22:48 -05:00
Rename one of my cmake support functions. (NFC)
add_platform_sources_to_library() is now called add_sources_from_current_dir(), so that it will make sense when I use it in subdirectories that aren't for a particular platform.
This commit is contained in:
@ -55,7 +55,7 @@ add_custom_target(cmake_commit_c
|
||||
DEPENDS check_git_commit ${INTERMEDIATE_COMMIT_C}
|
||||
COMMENT "Updating cmake_commit.c")
|
||||
|
||||
function(add_platform_sources_to_library target)
|
||||
function(add_sources_from_current_dir target)
|
||||
set(sources ${ARGN})
|
||||
list(TRANSFORM sources PREPEND ${CMAKE_CURRENT_SOURCE_DIR}/)
|
||||
target_sources(${target} PRIVATE ${sources})
|
||||
|
Reference in New Issue
Block a user