mirror of
https://github.com/mpusz/mp-units.git
synced 2025-06-25 01:01:33 +02:00
test_package fixed
This commit is contained in:
@ -39,6 +39,6 @@ add_executable(${PROJECT_NAME}_conan test_package.cpp)
|
||||
target_link_libraries(${PROJECT_NAME}_conan PRIVATE CONAN_PKG::mp-units)
|
||||
|
||||
# test cmake-generated target
|
||||
find_package(units CONFIG REQUIRED)
|
||||
find_package(mp-units CONFIG REQUIRED)
|
||||
add_executable(${PROJECT_NAME}_cmake test_package.cpp)
|
||||
target_link_libraries(${PROJECT_NAME}_cmake PRIVATE mp::units)
|
||||
|
@ -23,7 +23,9 @@
|
||||
#include <units/physical/si/speed.h>
|
||||
#include <iostream>
|
||||
|
||||
constexpr units::Speed AUTO avg_speed(units::Length AUTO d, units::Time AUTO t)
|
||||
using namespace units::physical;
|
||||
|
||||
constexpr Speed AUTO avg_speed(Length AUTO d, Time AUTO t)
|
||||
{
|
||||
return d / t;
|
||||
}
|
||||
|
Reference in New Issue
Block a user