Skip to content

Commit

Permalink
Bad indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
franramirez688 committed Nov 15, 2021
1 parent f0db58b commit b1f9c53
Showing 1 changed file with 30 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,36 +16,36 @@ def test_shared_link_flags():
Issue: https://github.com/conan-io/conan/issues/9936
"""
conanfile = textwrap.dedent("""
from conans import ConanFile
from conan.tools.cmake import CMake
from conan.tools.layout import cmake_layout
class HelloConan(ConanFile):
name = "hello"
version = "1.0"
settings = "os", "compiler", "build_type", "arch"
options = {"shared": [True, False]}
default_options = {"shared": False}
exports_sources = "CMakeLists.txt", "src/*"
generators = "CMakeDeps", "CMakeToolchain"
def layout(self):
cmake_layout(self)
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
def package(self):
cmake = CMake(self)
cmake.install()
def package_info(self):
self.cpp_info.libs = ["hello"]
self.cpp_info.sharedlinkflags = ["-z now", "-z relro"]
self.cpp_info.exelinkflags = ["-z now", "-z relro"]
from conans import ConanFile
from conan.tools.cmake import CMake
from conan.tools.layout import cmake_layout
class HelloConan(ConanFile):
name = "hello"
version = "1.0"
settings = "os", "compiler", "build_type", "arch"
options = {"shared": [True, False]}
default_options = {"shared": False}
exports_sources = "CMakeLists.txt", "src/*"
generators = "CMakeDeps", "CMakeToolchain"
def layout(self):
cmake_layout(self)
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
def package(self):
cmake = CMake(self)
cmake.install()
def package_info(self):
self.cpp_info.libs = ["hello"]
self.cpp_info.sharedlinkflags = ["-z now", "-z relro"]
self.cpp_info.exelinkflags = ["-z now", "-z relro"]
""")

client = TestClient()
Expand Down

0 comments on commit b1f9c53

Please sign in to comment.