Skip to content

Commit 99bfa1b

Browse files
committed
add FLAGS and deep-search-dir to DLLDeployer
1 parent 4513040 commit 99bfa1b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

DLLDeployer.cmake

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ function(DLLD_add_deploy target_name)
8181
cmake_parse_arguments(DLLD_add_deploy
8282
"BUILD_MODE;INSTALL_MODE;ALL;VERBOSE;COPY_VC_REDIST"
8383
"INSTALL_DESTINATION"
84-
"IGNORE"
84+
"IGNORE;FLAGS"
8585
${ARGN})
8686

8787
# Check target type
@@ -130,12 +130,16 @@ function(DLLD_add_deploy target_name)
130130
list(APPEND flags "\"--shallow-search-dir=${cxx_compiler_path}\"")
131131
endif ()
132132

133+
list(APPEND flags "\"--deep-search-dir=${CMAKE_BINARY_DIR}\"")
134+
133135
DLLD_replace_backslash(CMAKE_PREFIX_PATH CMAKE_PREFIX_PATH)
134136

135137
foreach (path ${CMAKE_PREFIX_PATH})
136138
list(APPEND flags "\"--cmake-prefix-path=${path}\"")
137139
endforeach ()
138140

141+
list(APPEND flags ${DLLD_add_deploy_FLAGS})
142+
139143
if(${DLLD_add_deploy_BUILD_MODE})
140144
set(custom_target_name "DLLD_deploy_for_${target_name}")
141145
if (${DLLD_add_deploy_ALL})

0 commit comments

Comments
 (0)