pfultz2 / cget

C++ package retrieval
http://cget.readthedocs.io
Other
453 stars 27 forks source link

Allow specifying cmake flags to pass onto the requirements #9

Closed chrisdembia closed 8 years ago

chrisdembia commented 8 years ago

First of all, awesome idea! It'd be nice if the requirements file allowed specifying cmake flags to pass onto the dependencies, e.g., -DCMAKE_CXX_FLAGS=..., etc.

pfultz2 commented 8 years ago

It should already be possible on the master branch(the pip version may not be that update). So you should be able to write this:

jgm/cmark -DCMAKE_CXX_FLAGS=-fopenmp

Let me know if that doesn't work for you.

chrisdembia commented 8 years ago

Oh neat! I'd try but I'm having trouble using cget at all on OSX. See #11. I also can't use cget install b/c:

  File "/usr/local/lib/python2.7/site-packages/cget-0.0.5-py2.7.egg/cget/prefix.py", line 120, in remove
    pkg_dir = self.get_package_directory(pkg.to_fname())
AttributeError: 'unicode' object has no attribute 'to_fname'
pfultz2 commented 8 years ago

Are you using a special prefix? Does it work without a prefix?

chrisdembia commented 8 years ago

I get the same error whether or not I give a prefix.

pfultz2 commented 8 years ago

Ok, so I can't reproduce this on the latest. Let me know if it still breaks for you.

chrisdembia commented 8 years ago

I still have this issue with the latest commit. I'll open a new issue for it, since this issue was about something else anyway.