-
Notifications
You must be signed in to change notification settings - Fork 38
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
Set the system timer resolution to the minimum value for higher precision on Windows #907
Conversation
I need to add the following line in the cmake. However given how the cmake machinery is implemented I need to modify the cmake functions if(WIN32)
target_link_libraries(iFeelDriver PRIVATE Winmm)
endif() |
Fixed in d5c9801 |
Just as a general comment, an alternative is to also define a add_bipedal_locomotion_library(
NAME System
PUBLIC_HEADERS ${H_PREFIX}/InputPort.h ${H_PREFIX}/OutputPort.h
${H_PREFIX}/Advanceable.h ${H_PREFIX}/Source.h ${H_PREFIX}/Sink.h
${H_PREFIX}/Factory.h
${H_PREFIX}/VariablesHandler.h ${H_PREFIX}/LinearTask.h ${H_PREFIX}/ILinearTaskSolver.h ${H_PREFIX}/ILinearTaskFactory.h ${H_PREFIX}/ITaskControllerManager.h
${H_PREFIX}/IClock.h ${H_PREFIX}/StdClock.h ${H_PREFIX}/Clock.h
${H_PREFIX}/SharedResource.h ${H_PREFIX}/AdvanceableRunner.h
${H_PREFIX}/QuitHandler.h
${H_PREFIX}/Barrier.h ${H_PREFIX}/TimeProfiler.h
${H_PREFIX}/WeightProvider.h ${H_PREFIX}/ConstantWeightProvider.h
SOURCES src/VariablesHandler.cpp src/LinearTask.cpp
src/StdClock.cpp src/Clock.cpp src/QuitHandler.cpp src/Barrier.cpp
src/ConstantWeightProvider.cpp src/TimeProfiler.cpp
PUBLIC_LINK_LIBRARIES BipedalLocomotion::ParametersHandler Eigen3::Eigen
SUBDIRECTORIES tests YarpImplementation RosImplementation
OUTPUT_TARGET_NAME_VARIABLE BLF_SYSTEM_TARGET_NAME)
if(WIN32)
target_link_libraries(${BLF_SYSTEM_TARGET_NAME} PRIVATE Winmm)
endif() to avoid adding a specfical handling the the function whenever you need to do something specific to a target. |
No description provided.