(#13984) [templates] Keep same pattern for cmake and min_cppstd

Signed-off-by: Uilian Ries <uilianries@gmail.com>

Signed-off-by: Uilian Ries <uilianries@gmail.com>
This commit is contained in:
Uilian Ries
2022-11-03 23:45:49 +01:00
committed by GitHub
parent 91141144d8
commit 5e5c1c5c72
4 changed files with 9 additions and 23 deletions

View File

@@ -7,9 +7,5 @@ conan_basic_setup(TARGETS)
find_package(package REQUIRED CONFIG)
# Re-use the same source file from test_package folder
add_executable(${PROJECT_NAME} ../test_package/test_package.c)
# don't link to ${CONAN_LIBS} or CONAN_PKG::package
target_link_libraries(${PROJECT_NAME} PRIVATE package::package)
# in case the target project requires a C++ standard
# target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_11)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../test_package/
${CMAKE_CURRENT_BINARY_DIR}/test_package/)