-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
first version of conanfile.py, issue#38 #82
Conversation
Signed-off-by: Denis Pronin <[email protected]>
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.
Thank you for your contribution :-)
@@ -30,7 +21,7 @@ target_compile_features(inotify_unit_test PRIVATE cxx_std_17) | |||
target_link_libraries(inotify_unit_test | |||
PRIVATE | |||
inotify-cpp::inotify-cpp | |||
Boost::unit_test_framework | |||
CONAN_PKG::boost |
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.
This will force everyone to use conan for compiling the unit test. I would keep the find package approach from cmake and add the package via conan from outside e.g:
conan install . -if build/dependencies/conan -s compiler.libcxx=libstdc++11 --build missing
cmake -S . -B build
cmake --install build/ --prefix /tmp/ -D "CMAKE_MODULE_PATH=${PWD}/build/dependencies/conan"
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.
Where have you seen such an approach?
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.
endif() | ||
|
||
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake) | ||
conan_basic_setup(TARGETS) |
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.
I would prefer to not force the usage of conan. We could do it as it was done my other project: https://github.com/erikzenker/hsm#conancmake
from conans import ConanFile, CMake, tools | ||
|
||
class INotifyCpp(ConanFile): | ||
name = "inotifycpp" |
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.
it is inotify-cpp
Provide first version of conanfile.py
Resolves issue#38
Signed-off-by: Denis Pronin [email protected]