forked from conan-io/conan-center-index
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(conan-io#15661) fruit: add fruit 3.7.1 and recipe improvements
* add fruit 3.7.1 and recipe improvements * Update recipes/fruit/all/conanfile.py Co-authored-by: Stella Smith <[email protected]> --------- Co-authored-by: Chris Mc <[email protected]> Co-authored-by: Stella Smith <[email protected]>
- Loading branch information
Showing
5 changed files
with
88 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
recipes/fruit/all/patches/0002-remove-cmake-extra-target-3.7.1.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 74c62a5..03444f5 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -2,12 +2,6 @@ cmake_minimum_required(VERSION 3.2) | ||
|
||
project(Fruit VERSION 3.7.1 LANGUAGES CXX) | ||
|
||
-set(FRUIT_IS_BEING_BUILT_BY_CONAN FALSE CACHE BOOL "This is set in Conan builds.") | ||
-if("${FRUIT_IS_BEING_BUILT_BY_CONAN}") | ||
- include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake) | ||
- conan_basic_setup() | ||
-endif() | ||
- | ||
if (POLICY CMP0054) | ||
cmake_policy(SET CMP0054 NEW) | ||
endif() | ||
@@ -130,19 +124,6 @@ include(GNUInstallDirs) | ||
add_subdirectory(configuration) | ||
add_subdirectory(src) | ||
|
||
-if(NOT "${FRUIT_IS_BEING_BUILT_BY_CONAN}") | ||
- if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug") | ||
- # Do not exclude these from "make all" in debug mode, they must build. | ||
- add_subdirectory(examples) | ||
- add_subdirectory(tests) | ||
- else() | ||
- add_subdirectory(examples EXCLUDE_FROM_ALL) | ||
- add_subdirectory(tests) | ||
- endif() | ||
- | ||
- add_subdirectory(extras EXCLUDE_FROM_ALL) | ||
-endif() | ||
- | ||
install(DIRECTORY include/fruit/ | ||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/fruit | ||
FILES_MATCHING PATTERN "*.h") |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,5 @@ versions: | |
folder: all | ||
"3.7.0": | ||
folder: all | ||
"3.7.1": | ||
folder: all |