Menu

Complete quoting for parameters of some CMake commands

2018-10-13
2018-10-16
  • Markus Elfring

    Markus Elfring - 2018-10-13

    A few parameters (like “${PROJECT_SOURCE_DIR}/lib/”) are passed to CMake commands in your build scripts without enclosing them by quotation marks. I see that these places will result in build difficulties if the contents of the used variables will contain special characters like semicolons.

    I would recommend to apply advices from a wiki article.

     
  • Daniel Marjamäki

    ok I will wait for a pull request from somebody

     
    • Markus Elfring

      Markus Elfring - 2018-10-14

      How will this issue influence other update suggestions for affected software build scripts?

       
  • Daniel Marjamäki

    How will this issue influence other update suggestions for affected software build scripts?

    How does your suggestions work when CMake 2.8 is used?

     
    • Markus Elfring

      Markus Elfring - 2018-10-16

      The enclosing of variable data by quotation marks is relevant for all scripts in the programming language “CMake” if you would like to care for the safe handling of semicolons.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.