diff --git a/test_package/CMakeLists.txt b/test_package/CMakeLists.txt index 43c1cc97..559377d3 100644 --- a/test_package/CMakeLists.txt +++ b/test_package/CMakeLists.txt @@ -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) diff --git a/test_package/test_package.cpp b/test_package/test_package.cpp index 021659bc..ba5d8742 100644 --- a/test_package/test_package.cpp +++ b/test_package/test_package.cpp @@ -23,7 +23,9 @@ #include #include -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; }