diff --git a/recipes/dispenso/all/conanfile.py b/recipes/dispenso/all/conanfile.py index 82bf8da42ed3b..59b020c2e1ee6 100644 --- a/recipes/dispenso/all/conanfile.py +++ b/recipes/dispenso/all/conanfile.py @@ -1,6 +1,6 @@ from conan import ConanFile from conan.errors import ConanInvalidConfiguration -from conan.tools.build import check_min_cppstd, valid_min_cppstd +from conan.tools.build import check_min_cppstd from conan.tools.cmake import CMake, CMakeDeps, CMakeToolchain, cmake_layout from conan.tools.files import copy, get, export_conandata_patches, apply_conandata_patches, rm, rmdir from conan.tools.scm import Version diff --git a/recipes/dispenso/all/test_package/CMakeLists.txt b/recipes/dispenso/all/test_package/CMakeLists.txt index 2df3f85aa80e7..37b4a548d33a9 100644 --- a/recipes/dispenso/all/test_package/CMakeLists.txt +++ b/recipes/dispenso/all/test_package/CMakeLists.txt @@ -5,7 +5,5 @@ project(test_package LANGUAGES CXX) find_package(Dispenso REQUIRED CONFIG) add_executable(${PROJECT_NAME} test_package.cpp) -# don't link to ${CONAN_LIBS} or CONAN_PKG::package target_link_libraries(${PROJECT_NAME} PRIVATE Dispenso::dispenso) -# In case the target project need a specific C++ standard target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_14) diff --git a/recipes/dispenso/all/test_package/conanfile.py b/recipes/dispenso/all/test_package/conanfile.py index 02eb5ce439fb4..ef5d7042163ec 100644 --- a/recipes/dispenso/all/test_package/conanfile.py +++ b/recipes/dispenso/all/test_package/conanfile.py @@ -4,7 +4,6 @@ import os -# It will become the standard on Conan 2.x class TestPackageConan(ConanFile): settings = "os", "arch", "compiler", "build_type" generators = "CMakeDeps", "CMakeToolchain", "VirtualRunEnv" diff --git a/recipes/dispenso/all/test_package/test_package.cpp b/recipes/dispenso/all/test_package/test_package.cpp index c337730170052..cd298492d0fe8 100644 --- a/recipes/dispenso/all/test_package/test_package.cpp +++ b/recipes/dispenso/all/test_package/test_package.cpp @@ -1,9 +1,9 @@ #include -#include "dispenso/platform.h" +#include "dispenso/parallel_for.h" int main(void) { - std::cout << DISPENSO_MAJOR_VERSION << "." << DISPENSO_MINOR_VERSION << std::endl; - - return EXIT_SUCCESS; + dispenso::parallel_for(0, 5, [] (size_t j) { + std::cout << j << std::endl; + }); }