File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -217,9 +217,19 @@ SET_CEF_TARGET_OUT_DIR()
217217# CMAKE_LIBRARY_OUTPUT_DIRECTORY for Makefiles/Ninja generators, so redirecting
218218# CEF_TARGET_OUT_DIR alone is not enough - both must be set here, after the
219219# macro call, to actually take effect for add_library/add_executable below.
220+ # Multi-config generators (Xcode, Visual Studio) auto-append a /<CONFIG>
221+ # subfolder to the plain (non-per-config) variable, so the *_DEBUG/*_RELEASE
222+ # variants must be set explicitly too, or binaries end up one level deeper
223+ # than CEF_TARGET_OUT_DIR (e.g. .../win/Release/ceffx_helper.exe instead of
224+ # .../win/ceffx_helper.exe), breaking every custom command that references
225+ # CEF_TARGET_OUT_DIR directly (manifest embedding, bundle copying, etc.).
220226set (CEF_TARGET_OUT_DIR "${CMAKE_BINARY_DIR } /Release/${NATIVES_CLASSIFIER} " )
221227set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CEF_TARGET_OUT_DIR} )
228+ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CEF_TARGET_OUT_DIR} )
229+ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CEF_TARGET_OUT_DIR} )
222230set (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CEF_TARGET_OUT_DIR} )
231+ set (CMAKE_LIBRARY_OUTPUT_DIRECTORY_DEBUG ${CEF_TARGET_OUT_DIR} )
232+ set (CMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE ${CEF_TARGET_OUT_DIR} )
223233
224234
225235#
You can’t perform that action at this time.
0 commit comments