-
Notifications
You must be signed in to change notification settings - Fork 94
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
Fixed broken package configuration #115
base: develop
Are you sure you want to change the base?
Conversation
Pion failed finding the file when being used as a submodule.
@@ -141,7 +141,7 @@ install(TARGETS ${PROJECT_NAME} | |||
) | |||
|
|||
include(CMakePackageConfigHelpers) | |||
configure_file(${CMAKE_SOURCE_DIR}/cmake/modules/lib${PROJECT_NAME}-config.cmake.in | |||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/../cmake/modules/lib${PROJECT_NAME}-config.cmake.in | |||
${CMAKE_CURRENT_BINARY_DIR}/lib${PROJECT_NAME}-config.cmake |
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.
Will changing ${CMAKE_SOURCE_DIR}
to ${PION_SRC_ROOT}
can help?
Just to skip ``../`
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.
Yes that worked aswell
Also i've noticed that for some reason, the pion artifacts are build relative to pion's directory suprizes me, since |
@Anticom Well it was a long time ago :) |
👍 LGTM |
I'll have a look at the CMake build files. Maybe I can contribute the rewrite you're talking about @snikulov |
Any updates on whether and if so when the PR will be merged eventually? 😉 |
* Synchronize each miscrosec test to the next second (splunk#109) * Synchronize each miscrosec test to the next second The aim is to avoid false positives in test_microsec when the seconds, minutes or hours change during time read between the second_clock and the microsec_clock. * Improved readability of the microcec_time_clock test * Improve performance of adding and subtracting time durations from a ptime. (splunk#99) Modifying ptime objects by adding and subtracting time durations was inefficient because it extracted the date and time of day and then re-constructed a ptime using the date and modified time of day. This can be avoided by using the existing time_system utilities which perform the operation by adjusting the number of ticks. Performance is improved by a factor of 48 on my system. * Update CI Scripts * Add time_duration helper functions: (splunk#113) 1. is_positive() - Return boolean value to indicate whether or not time duration is positive. 2. is_zero() - Return boolean value to indicate whether or not time duration is zero. 3. abs() - Return a time_duration which is the absolute value of time duration. Added documentation for these helper functions and improved existing documentation to indicate constness, return values or static functions. * Cease dependence on MPL (splunk#115)
Pion failed finding the file when being used as a submodule.
Steps to reproduce (tested on linux):
foo
foo/CMakeLists.txt
that hasadd_subdirectory("pion")
in itfoo
(so you getfoo/pion/...
)foo/Release
foo/Release
and run cmake ..This change makes the file being configured relative to the current directory
src/CMakeLists.txt
is placed in. MaybePION_SRC_ROOT
could have been used, however this is working aswell.