Skip to content

Conversation

@vargaz
Copy link
Contributor

@vargaz vargaz commented Feb 5, 2021

No description provided.

@vargaz vargaz requested a review from marek-safar as a code owner February 5, 2021 16:10
@ghost ghost added the area-Build-mono label Feb 5, 2021
"#define RuntimeProductMinorVersion 0\n"
"#define RuntimeProductPatchVersion 0\n"
)
endif()
Copy link
Member

@akoeplinger akoeplinger Feb 5, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of writing to these unused header files and reading them back I'd rather do

if (NOT EXISTS "${CMAKE_CURRENT_BINARY_DIR}/_version.h" AND NOT EXISTS "${CMAKE_CURRENT_BINARY_DIR}/runtime_version.h")
  set(VERSION "\"42.42.42.0\"")
  set(FULL_VERSION "42.42.42.42424")
else()
  ... existing code ...
endif()

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

runtime-version.h is included in some eventpipe files.

@vargaz vargaz merged commit 1fca955 into dotnet:master Feb 5, 2021
@vargaz vargaz deleted the fix-cmake branch February 5, 2021 22:55
@ghost ghost locked as resolved and limited conversation to collaborators Mar 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants