-
-
Notifications
You must be signed in to change notification settings - Fork 810
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installing a specific target doesn't install it's dependencies #5788
Comments
because you rewrited on_install |
The issue persists despite removing |
it works for me. set_languages("cxxlatest")
add_rules("mode.debug")
target("library")
set_kind("shared")
add_files("src/*.cpp")
on_install(function(target)
print("installing library")
end)
target_end()
target("console_app")
set_kind("binary")
add_files("src/*.cpp")
add_deps("library") ruki-2:test ruki$ xmake install -o /tmp/test1
installing library <-------------------------------
installing console_app ..
installing console_app to /tmp/test1 ..
install ok! |
But using set_languages("cxxlatest")
add_rules("mode.debug")
target("library")
set_kind("static")
add_files("src/*.cpp")
on_install(function(target)
print("installing library")
end)
target_end()
target("console_app1")
set_kind("binary")
add_files("src/*.cpp")
add_deps("library")
target_end()
target("console_app2")
set_kind("binary")
add_files("src/*.cpp")
add_deps("library")
target_end() To run |
it will install console_app1 and its dep libraries, but it will not call library's on_install. ruki-2:test ruki$ xmake install -o /tmp/foo console_app
installing console_app ..
installing console_app to /tmp/foo ..
install ok!
ruki-2:test ruki$ tree /tmp/foo
/tmp/foo
├── bin
│ └── console_app
└── lib
└── liblibrary.dylib |
Shouldn't it call it? it's possible that library's |
Xmake Version
xmake v2.9.6+HEAD.abd15c255
Operating System Version and Architecture
Windows 11 23H2
Describe Bug
Installing a target with
xmake install -o install <target>
doesn't install the dependencies related to<target>
.Expected Behavior
Installing the target should implicitly install all dependencies down the tree.
Project Configuration
Additional Information and Error Logs
The text was updated successfully, but these errors were encountered: