Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Add default CMake installation path to probe script.#7307

Merged
jhendrixMSFT merged 2 commits intodotnet:masterfrom
jhendrixMSFT:master
Mar 29, 2016
Merged

Add default CMake installation path to probe script.#7307
jhendrixMSFT merged 2 commits intodotnet:masterfrom
jhendrixMSFT:master

Conversation

@jhendrixMSFT
Copy link
Contributor

CMake 3.5+ MSI-based installations no longer write the installation
directory to the registry. To work around this I have added the default
installation directory to the probing logic.
Fix syntax errors in build-packages.sh and run init-tools.sh if tools haven't
been restored.

CMake 3.5+ MSI-based installations no longer write the installation
directory to the registry.  To work around this I have added the default
installation directory to the probing logic.
@jhendrixMSFT
Copy link
Contributor Author

@maririos @naamunds for changes to build-packages.sh

@jhendrixMSFT
Copy link
Contributor Author

@weshaggard can you take a look at my changes to the cmake probing script.

usage
fi

if [ ! -e "$working_tree_root/Tools/corerun" ]
Copy link
Member

Choose a reason for hiding this comment

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

We don't need this condition as init-tools manages it

@maririos
Copy link
Member

@jhendrixMSFT could you please add init-tools in build-packages.cmd too?

Fix syntax errors in if clause (.sh version).
Run init-tools script if tools haven't been restored.
@maririos
Copy link
Member

LGTM

@naamunds
Copy link
Member

The build-packages changes LGTM.


REM ensure that msbuild is available
echo Running init-tools.cmd
call %~dp0init-tools.cmd
Copy link
Member

Choose a reason for hiding this comment

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

@jhendrixMSFT This change is still not merged. #7220

Copy link
Member

Choose a reason for hiding this comment

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

Should the output of this call go to some log?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It writes its own log file (init-tools.log).

Copy link
Member

Choose a reason for hiding this comment

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

init-tools has its own log file, but we can add to packagesLog that we are calling init-tools

@chcosta
Copy link
Member

chcosta commented Mar 29, 2016

LGTM

@jhendrixMSFT jhendrixMSFT merged commit b0935d2 into dotnet:master Mar 29, 2016
@weshaggard
Copy link
Member

Looks reasonable to me for now.

@karelz karelz modified the milestone: 1.0.0-rtm Dec 3, 2016
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
Add default CMake installation path to probe script.

Commit migrated from dotnet/corefx@b0935d2
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants