Commit 1d662654 authored by David Yip's avatar David Yip

Fix definition / configure order in test package

parent 595ebc22
......@@ -19,9 +19,10 @@ class SemvercTestConan(ConanFile):
cmake = CMake(self)
# Current dir is "test_package/build/<build_id>" and CMakeLists.txt is
# in "test_package"
cmake.configure()
cmake.definitions["CMAKE_INTERPROCEDURAL_OPTIMIZATION"] = self.options.lto
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"
......
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