Jump to content
  • CMAKE - Problems with MSVC variable value


    Tuker
    • Status: Not a bug
      Main Category: Unset
      Sub-Category: Unknown
      Version: 22.1 Milestone: 24 Priority: Normal
      Implemented Version: 22.1

    When EasyBuild try to look at MySQL Libraries, but MSVC is not TRUE so, even if VS2015 and MySQL Libraries are installed.

    Cause the IF statement has WIN32 with MSVC variable in &&, .cmake scrcipt consider the enviroment as Linux, and try to look at Linux path for Libraries.

    In attachment a ZIP with:

    • screenshots of EasyBuild
    • .cmake file as the one on Repository but with some debug messages
    • .cmake without MSVC in && that works
    • Full Log for the "original" .cmake file

    MySQL Cmake PRoblem.zip

    Full Log without MSVC in IF STATEMENT.txt

    Edited by Tuker


    User Feedback

    Recommended Comments

    When you say that it works, does that mean that you also tried to compile the core?
    According to cmake docs MSVC should be defined as true when the compiler is some version of VS.

    If cmake running manually works, then probably the part that runs cmake needs to be tweaked in easybuild.
    Seems that cmake cannot determine the compiler or determines it wrong or after the step that we are using it at somehow.

    Probably need the easybuild source code for this one if it does not happen when running cmake on its own.

    Link to comment
    Share on other sites

    Using the Virtual Machine everything works well, so it's obviously a problem with VS2015 installed on my machine.
    Just in case someone can't reinstall it, just as me, a solution should be to set up a MaNGOS Development Machine.

    I'll close this ticket setting as "Not a Bug".

    Link to comment
    Share on other sites



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use