mirror of
https://github.com/conan-io/conan-center-index.git
synced 2025-08-14 02:35:37 +00:00
(#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:
@@ -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/)
|
||||
|
Reference in New Issue
Block a user