Link everything statically if StaticC is defined.
continuous-integration/drone/push Build is failing

This commit is contained in:
Deukhoofd committed 2020-05-03 12:31:23 +02:00
1 parent f99243481e
commit 444816ce1b
2 files changed
+2 -6

No files matched your search

+2 -2
View File
@@ -28,9 +28,9 @@ if (WINDOWS)
endif (WINDOWS) endif (WINDOWS)
if (STATICC) if (STATICC)
target_link_libraries(Arbutils -static-libgcc -static-libstdc++) target_link_libraries(Arbutils -static -static-libgcc -static-libstdc++)
if (NOT DEFINED CONAN_EXPORTED) if (NOT DEFINED CONAN_EXPORTED)
target_link_libraries(ArbutilsTests -static-libgcc -static-libstdc++) target_link_libraries(ArbutilsTests -static -static-libgcc -static-libstdc++)
endif() endif()
endif(STATICC) endif(STATICC)
-4
View File
@@ -32,10 +32,6 @@ class ArbutilsConan(ConanFile):
cmake.configure() cmake.configure()
cmake.build() cmake.build()
# Explicit way:
# self.run('cmake "%s/src" %s' % (self.source_folder, cmake.command_line))
# self.run("cmake --build . %s" % cmake.build_config)
def package(self): def package(self):
self.copy("*.hpp", dst="include/Arbutils", src="src") self.copy("*.hpp", dst="include/Arbutils", src="src")
self.copy("*.dll", dst="bin", keep_path=False) self.copy("*.dll", dst="bin", keep_path=False)