Skip to content

Conversation

@zhutoulala
Copy link

fixes the issues:

  • open read only solution file failed

  • INCLUDE .cmake syntax error on Windows due to backslash in the path

  • Parsing driver projects throws exceptions

@zhutoulala zhutoulala changed the title add a few error handlings add support addtional include and link folder, and /MT /MD options, and a few error handlings May 26, 2018
@zhutoulala
Copy link
Author

also refactor the code a bit by moving most code out of main

@zhutoulala
Copy link
Author

Hi @mrpi, have you got a chance to take a look at this PR?

void cmake::writeGeneratedNote(std::ostream& os)
{
os << "#" << std::endl;
os << "# This file was genared by proj2cmake and will be overwritten on it's next run!" << std::endl;

Choose a reason for hiding this comment

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

genared == generated

fs::path confFile = "cmake_conf";
confFile /= (solution.name + ".cmake");

//os << "IF(EXISTS \"${" << solution.name << "_SOURCE_DIR}/cmake_conf/" << solution.name << ".cmake\")" << std::endl;

Choose a reason for hiding this comment

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

To leave commented out code is a bad practice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants