Jump to content
  • Advertisement
Sign in to follow this  
abrakadabra

CMake - I don't want my string to be a list!

This topic is 1410 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am trying to set my environment variable using cmake but the result from this string

PATH=%PATH%;C:/Program Files/Autodesk/Maya2015/bin/

 

results in

PATH=%PATH%

C:/Program Files/Autodesk/Maya2015/bin/

 

CMake thinks the string is a list because of the semicolon. Another CMake wtf moment. Any idea how to prevent this and force the string be a string and not a list?

Share this post


Link to post
Share on other sites
Advertisement

Have you tried escaping the command?

Put a "\" before the semicolon, this will escape the command the semicolon does which is try and split the object into 2 objects. Not sure if this will work for cmake but it should.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!