Skip to content

Commit

Permalink
Remove duplication in test_package
Browse files Browse the repository at this point in the history
  • Loading branch information
Hopobcn committed Feb 5, 2023
1 parent e10890c commit 30b6d40
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 41 deletions.
13 changes: 2 additions & 11 deletions recipes/folly/all/test_v1_package/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,5 @@ project(test_package CXX)
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup(TARGETS)

find_package(folly CONFIG REQUIRED)

add_executable(${PROJECT_NAME} test_package.cpp)
target_link_libraries(${PROJECT_NAME} Folly::folly)


if (${FOLLY_VERSION} VERSION_LESS "2021.07.20.00")
set_property(TARGET ${PROJECT_NAME} PROPERTY CXX_STANDARD 14)
else()
set_property(TARGET ${PROJECT_NAME} PROPERTY CXX_STANDARD 17)
endif()
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../test_package
${CMAKE_CURRENT_BINARY_DIR}/test_package)
2 changes: 1 addition & 1 deletion recipes/folly/all/test_v1_package/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ def build(self):
def test(self):
if not tools.cross_building(self):
bin_path = os.path.join("bin", "test_package")
self.run(command=bin_path, run_environment=True)
self.run(bin_path, run_environment=True)
29 changes: 0 additions & 29 deletions recipes/folly/all/test_v1_package/test_package.cpp

This file was deleted.

0 comments on commit 30b6d40

Please sign in to comment.