Message ID | bb8f122cdec94e1ec77b37ed16a7151f5e35a93a.1601044118.git.gitgitgadget@gmail.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | CMake and Visual Studio | expand |
On Fri, Sep 25, 2020 at 10:28 AM Johannes Schindelin via GitGitGadget
<gitgitgadget@gmail.com> wrote:
> cmake (Windows): let the `.dll` files are found when running the tests
I'm having trouble parsing this. Maybe you want s/let/ensure/ ?
Hi Eric, On Fri, 25 Sep 2020, Eric Sunshine wrote: > On Fri, Sep 25, 2020 at 10:28 AM Johannes Schindelin via GitGitGadget > <gitgitgadget@gmail.com> wrote: > > cmake (Windows): let the `.dll` files are found when running the tests > > I'm having trouble parsing this. Maybe you want s/let/ensure/ ? Right, that does not parse at all. I did `s/are/be/` instead. Thanks, Dscho
diff --git a/contrib/buildsystems/CMakeLists.txt b/contrib/buildsystems/CMakeLists.txt index e66ae137c2..5a4e0ccb01 100644 --- a/contrib/buildsystems/CMakeLists.txt +++ b/contrib/buildsystems/CMakeLists.txt @@ -942,6 +942,9 @@ file(APPEND ${CMAKE_BINARY_DIR}/GIT-BUILD-OPTIONS "X='${EXE_EXTENSION}'\n") file(APPEND ${CMAKE_BINARY_DIR}/GIT-BUILD-OPTIONS "NO_GETTEXT='${NO_GETTEXT}'\n") file(APPEND ${CMAKE_BINARY_DIR}/GIT-BUILD-OPTIONS "RUNTIME_PREFIX='${RUNTIME_PREFIX}'\n") file(APPEND ${CMAKE_BINARY_DIR}/GIT-BUILD-OPTIONS "NO_PYTHON='${NO_PYTHON}'\n") +if(WIN32) + file(APPEND ${CMAKE_BINARY_DIR}/GIT-BUILD-OPTIONS "PATH=\"$PATH:$TEST_DIRECTORY/../compat/vcbuild/vcpkg/installed/x64-windows/bin\"\n") +endif() #Make the tests work when building out of the source tree get_filename_component(CACHE_PATH ${CMAKE_CURRENT_LIST_DIR}/../../CMakeCache.txt ABSOLUTE)