mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
MSVC+CMake: avoid get_target_property. #4004
When using the Visual Studio generator don't use get_target_property for custom command, because it returns unexpanded VS variables (e.g. $(Configuration)) within the result as part of the LOCATION path. The single case where this is a problem is for getting the output path for nvim-test, instead we use a path here.
This commit is contained in:
parent
3875d0bdf6
commit
f5ae5fa799
@ -426,7 +426,11 @@ if(BUSTED_PRG)
|
|||||||
if(POLICY CMP0026)
|
if(POLICY CMP0026)
|
||||||
cmake_policy(SET CMP0026 OLD)
|
cmake_policy(SET CMP0026 OLD)
|
||||||
endif()
|
endif()
|
||||||
get_target_property(TEST_LIBNVIM_PATH nvim-test LOCATION)
|
if(CMAKE_GENERATOR MATCHES "Visual Studio")
|
||||||
|
set(TEST_LIBNVIM_PATH ${CMAKE_BINARY_DIR}/lib/nvim-test.dll)
|
||||||
|
else()
|
||||||
|
get_target_property(TEST_LIBNVIM_PATH nvim-test LOCATION)
|
||||||
|
endif()
|
||||||
|
|
||||||
configure_file(
|
configure_file(
|
||||||
test/config/paths.lua.in
|
test/config/paths.lua.in
|
||||||
|
Loading…
Reference in New Issue
Block a user