Commit 4c928f62 authored by David Yip's avatar David Yip

More LTO-related fixes in the test package

parent 1d662654
......@@ -12,8 +12,8 @@ class SemvercTestConan(ConanFile):
}
def config_options(self):
self.options.lto = self.options["semver.c"].lto
self.options.fPIC = self.options["semver.c"].fPIC
self.options.lto = self.options["semver.c"].lto
def build(self):
cmake = CMake(self)
......@@ -21,11 +21,11 @@ class SemvercTestConan(ConanFile):
# in "test_package"
cmake.definitions["CMAKE_POSITION_INDEPENDENT_CODE"] = self.options.fPIC
cmake.definitions["CMAKE_INTERPROCEDURAL_OPTIMIZATION"] = self.options.lto
cmake.configure()
if self.options.lto:
cmake.definitions["CMAKE_POLICY_DEFAULT_CMP0069"] = "NEW"
cmake.configure()
cmake.build()
def imports(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment