...
 
Commits (2)
......@@ -43,7 +43,10 @@ class LibuvConan(ConanFile):
cmake = CMake(self, generator=generator, **kwargs)
cmake.definitions["CMAKE_INTERPROCEDURAL_OPTIMIZATION"] = self.options.lto
cmake.definitions["CMAKE_POSITION_INDEPENDENT_CODE"] = self.options.fPIC
if not self.settings.os == "Windows":
cmake.definitions["CMAKE_POSITION_INDEPENDENT_CODE"] = self.options.fPIC
cmake.definitions["BUILD_TESTING"] = True
if self.options.lto:
cmake.definitions["CMAKE_POLICY_DEFAULT_CMP0069"] = "NEW"
......
......@@ -24,7 +24,10 @@ class LibuvTestConan(ConanFile):
# in "test_package"
cmake.definitions["CMAKE_INTERPROCEDURAL_OPTIMIZATION"] = self.options.lto
cmake.definitions["CMAKE_POSITION_INDEPENDENT_CODE"] = self.options.fPIC
if not self.settings.os == "Windows":
cmake.definitions["CMAKE_POSITION_INDEPENDENT_CODE"] = self.options.fPIC
if self.options.lto:
cmake.definitions["CMAKE_POLICY_DEFAULT_CMP0069"] = "NEW"
......