Upgrade cmake on appveyor workers

dmeiser79's Avatar

dmeiser79

09 Feb, 2015 04:15 PM

Hi,

Would it be possible to upgrade to a more recent version of cmake? For my project I need at least 2.8.8 but a newer version than that would be even better. The latest windows installer is here:

http://www.cmake.org/files/v3.1/cmake-3.1.2-win32-x86.exe

Thanks,
Dominic

  1. Support Staff 1 Posted by Feodor Fitsner on 09 Feb, 2015 05:30 PM

    Feodor Fitsner's Avatar

    Will deploy it this week.

  2. 2 Posted by dmeiser79 on 09 Feb, 2015 05:38 PM

    dmeiser79's Avatar

    Great, thanks.

  3. Support Staff 3 Posted by Feodor Fitsner on 12 Feb, 2015 05:06 AM

    Feodor Fitsner's Avatar

    It's been updated to the latest 3.1.2

  4. 4 Posted by victor.zverovic... on 12 Feb, 2015 08:13 PM

    victor.zverovich's Avatar

    Looks like this update broke the build here: https://ci.appveyor.com/project/vitaut/cppformat/build/1.0.699/job/t773yj8fir98gmyf

    The output is completely messed up (which is another issue), but it appears that CMake warning is treated as a failure. It's not clear what "Command executed with exception:" refers to though.

  5. Support Staff 5 Posted by Feodor Fitsner on 12 Feb, 2015 08:17 PM

    Feodor Fitsner's Avatar

    Seems like cmake is writing to StdErr which is treated by PS as exception. Try replacing before_build section with:

    before_build:
      - ps: |
          if ($env:Build -eq "mingw") {
            # Remove path to Git bin directory from PATH because it breaks MinGW config.
            $env:PATH = $env:PATH -replace "C:\\Program Files \(x86\)\\Git\\bin",""
            $generator = "-GMinGW Makefiles"
          }
      - echo "-DCMAKE_BUILD_TYPE=$env:Config"
      - cmake -DFMT_EXTRA_TESTS=ON "-DCMAKE_BUILD_TYPE=$env:Config" "$generator" .
    
  6. 6 Posted by dmeiser79 on 12 Feb, 2015 09:34 PM

    dmeiser79's Avatar

    Several options to fix this:
    - use `cmake_policy` as mentioned in the error message to get old cmake behavior.
    - Fix the CMakeLists.txt to the new behavior (get rid of quotes in if statement).
    - Ignore warning with -Wno-dev
    Let me know if you have problems with any of this. I could provide PR to fix.

  7. 7 Posted by victor.zverovic... on 13 Feb, 2015 03:04 AM

    victor.zverovich's Avatar

    Feodor, unfortunately changing the `before_build` section didn't help, but you were right the problem was in PowerShell's treatment of stderr. I've moved the code to a separate Python script, so everything is working now and much cleaner. Shouldn't have used PowerShell in the first place because it's such a mess, but I didn't know that Python comes preinstalled on build machines.

    Dominic, I fixed the warning already, but thanks for the suggestion.

    Thanks, guys.

  8. Support Staff 8 Posted by Feodor Fitsner on 13 Feb, 2015 03:05 AM

    Feodor Fitsner's Avatar

    Great, thanks for the update!

  9. 9 Posted by Christopher Dem... on 05 Oct, 2015 10:53 PM

    Christopher Dembia's Avatar

    There is a bug in CMake related to VS2015 and the redistributable dll's (https://cmake.org/Bug/view.php?id=15552). The CMake bug is fixed in CMake version 3.2.3. Could you upgrade CMake again to at least 3.2.3?

    Thank you!

  10. Support Staff 10 Posted by Feodor Fitsner on 05 Oct, 2015 11:17 PM

    Feodor Fitsner's Avatar

    Sure. I've added a new issue: https://github.com/appveyor/ci/issues/444

  11. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:00 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

 

13 Sep, 2023 06:05 AM
10 Sep, 2023 03:43 PM
09 Sep, 2023 05:53 PM
08 Sep, 2023 07:10 PM
31 Aug, 2023 07:59 PM
13 Aug, 2023 04:55 AM