New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support cygwin and ensure shared libs are on more verbosely #2
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, tests are green. Please just modify accordingly to my comments
conanfile.py
Outdated
@@ -10,10 +10,10 @@ class VTKConan(ConanFile): | |||
SHORT_VERSION = short_version | |||
generators = "cmake" | |||
settings = "os", "compiler", "build_type", "arch" | |||
options = {"shared": [True, False], "qt": [True, False]} | |||
default_options = "shared=False", "qt=False" | |||
options = {"shared": [True, False], "qt": [True, False],"cygwin_msvc": [True, False],"linux_use_sudo": [True, False]} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please separate new options by a whitespace, or better by splitting this long line into multiple lines.
conanfile.py
Outdated
exports = ["CMakeLists.txt", "FindVTK.cmake"] | ||
url="http://github.com/bilke/conan-vtk" | ||
url="http://github.com/pkarasev3/conan-vtk" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove that change.
CMAKE_OPTIONALS = "" | ||
BUILD_OPTIONALS = "" | ||
if self.options.shared == False: | ||
CMAKE_OPTIONALS += " -DBUILD_SHARED_LIBS=OFF" | ||
if self.options.shared == True: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just use an else:
.
Turn off Group_StandAlone build and remove unnecessary libs
2dc4e0b
to
b5f9a13
Compare
8922839
to
b322439
Compare
let me know if this change works in principle ... (modulo the url path I presume)