mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-08 00:39:47 +02:00
[Conan] save install folder to CMake variable
This commit is contained in:
parent
d1ab611b4f
commit
e0e075df77
@ -142,7 +142,7 @@ function(vcmi_install_conan_deps install_dir)
|
|||||||
endif()
|
endif()
|
||||||
install(CODE "
|
install(CODE "
|
||||||
execute_process(COMMAND
|
execute_process(COMMAND
|
||||||
conan imports \"${CMAKE_SOURCE_DIR}\" --install-folder \"${CMAKE_SOURCE_DIR}/conan-generated\" --import-folder \"${install_dir}\"
|
conan imports \"${CMAKE_SOURCE_DIR}\" --install-folder \"${CONAN_INSTALL_FOLDER}\" --import-folder \"${install_dir}\"
|
||||||
)
|
)
|
||||||
file(REMOVE \"${install_dir}/conan_imports_manifest.txt\")
|
file(REMOVE \"${install_dir}/conan_imports_manifest.txt\")
|
||||||
")
|
")
|
||||||
|
@ -192,6 +192,7 @@ class VCMI(ConanFile):
|
|||||||
def generate(self):
|
def generate(self):
|
||||||
tc = CMakeToolchain(self)
|
tc = CMakeToolchain(self)
|
||||||
tc.variables["USING_CONAN"] = True
|
tc.variables["USING_CONAN"] = True
|
||||||
|
tc.variables["CONAN_INSTALL_FOLDER"] = self.install_folder
|
||||||
tc.generate()
|
tc.generate()
|
||||||
|
|
||||||
deps = CMakeDeps(self)
|
deps = CMakeDeps(self)
|
||||||
|
Loading…
Reference in New Issue
Block a user