Browse Source

Merge topic 'ep-srcdir-bindir-configure-args'

6b6d593351 ExternalProject: Use -S and -B args to robustly set configure dirs

Acked-by: Kitware Robot <[email protected]>
Tested-by: buildbot <[email protected]>
Acked-by: Alexey Edelev <[email protected]>
Merge-request: !7837
Craig Scott 3 years ago
parent
commit
204d277f39
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Modules/ExternalProject.cmake

+ 1 - 1
Modules/ExternalProject.cmake

@@ -3642,7 +3642,7 @@ function(_ep_extract_configure_command var name)
       )
     endif()
 
-    list(APPEND cmd "<SOURCE_DIR><SOURCE_SUBDIR>")
+    list(APPEND cmd -S "<SOURCE_DIR><SOURCE_SUBDIR>" -B "<BINARY_DIR>")
   endif()
 
   set("${var}" "${cmd}" PARENT_SCOPE)