Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* try default skip_rpaths=False * wip * added test in Win and Linux * remove check of CMAKE_SKIP_RPATH in OSX
- Loading branch information
1 parent
a5676f4
commit 3fb74f5
Showing
4 changed files
with
69 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
conans/test/functional/toolchains/cmake/test_shared_cmake.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
from conan.tools.env.environment import environment_wrap_command | ||
from conans.test.assets.pkg_cmake import pkg_cmake, pkg_cmake_app | ||
from conans.test.utils.tools import TestClient | ||
|
||
|
||
def test_shared_cmake_toolchain(): | ||
client = TestClient(default_server_user=True) | ||
|
||
client.save(pkg_cmake("hello", "0.1")) | ||
client.run("create . -o hello:shared=True") | ||
client.save(pkg_cmake("chat", "0.1", requires=["hello/0.1"]), clean_first=True) | ||
client.run("create . -o chat:shared=True -o hello:shared=True") | ||
client.save(pkg_cmake_app("app", "0.1", requires=["chat/0.1"]), clean_first=True) | ||
client.run("create . -o chat:shared=True -o hello:shared=True") | ||
client.run("upload * --all -c") | ||
client.run("remove * -f") | ||
|
||
client = TestClient(servers=client.servers, users=client.users) | ||
client.run("install app/0.1@ -o chat:shared=True -o hello:shared=True -g VirtualEnv") | ||
command = environment_wrap_command("conanrunenv", "app", cwd=client.current_folder) | ||
client.run_command(command) | ||
assert "main: Release!" in client.out | ||
assert "chat: Release!" in client.out | ||
assert "hello: Release!" in client.out |