You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Which generators are run when obtaining the code dependencies, before build()
1530
-
generators = "cmake_paths", "cmake"
1531
-
1532
-
# (overridable) defaults for consumers
1533
-
build_policy = "missing"
1534
-
1535
1541
1536
1542
# Build procedure: code retrieval
1537
1543
# Git's repository origin remote and its current revision are captured by recipe export
@@ -1580,6 +1586,15 @@ Invoking `conan install`, Conan will copy the content of its source folder direc
1580
1586
If we did not clone in a subfolder, the different files at the root of the repository would appear directly at the root of the build folder, which could augment the risk of filename collision.
1581
1587
In other words, it ensures an _out of source build_, with the specificity that the source folder is nested under the build folder.
1582
1588
1589
+
CAUTION: The recipe revision mode is explicitly set to `revision_mode = scm`, instead of the default `hash` mode.
1590
+
As its value indicates, the default mode computes the recipe revision by hashing the recipe file. +
1591
+
Since hashing notably takes line endings into account, this might result in different revisions being computed
1592
+
depending on the host system (CRLF vs CR vs LF line endings) and git's configuration. +
1593
+
Having different revisions for what is actually the exact same recipe would be conceptually wrong,
1594
+
and could also break the actual distribution via Conan repositories:
1595
+
if prebuilt packages for all systems are expected to live under a single recipe revision in the central repository (as is intended),
1596
+
then a for systems with a non-matching line ending, the package might not be found under the correct revision.
1597
+
1583
1598
NOTE: The `shared` option and `build_type` setting are common in recipes, thus Conan implicitly forwards the corresponding definitions to the CMake object.
1584
1599
On the other hand, the custom `build_tests` option is manually forwarded. This explicit approach allows complete customisation of the CMake variables.
1585
1600
The documentation provides link:https://docs.conan.io/en/latest/reference/build_helpers/cmake.html#definitions[the list of automatic variables].
@@ -1810,10 +1825,13 @@ Such folder usually consists of 3 files:
0 commit comments