CartwrightLab / dawg

Simulating Sequence Evolution
GNU General Public License v2.0
11 stars 3 forks source link

Location of config.h may be confusing #22

Closed zmertens closed 8 years ago

zmertens commented 8 years ago

I ran into this issue trying to link against the dawg headers. The path to config.h as specified in the dawg/details/mutt.h file is:

#ifndef DAWG_NO_CONFIG_H
#   include <dawg/details/config.h>
#endif

But the config.h file is located in the top-level src/ directory. I think CMAKE resolves this using config.h.cmake; I ran into this issue trying to link against the dawg headers and library files (without using CMAKE), so I am wondering if config.h should be included within the dawg/details directory?

reedacartwright commented 8 years ago

Yes, it should be installed alongside the other headers, I believe.

Reed A. Cartwright, PhD Barrett Honors Faculty Assistant Professor of Genomics, Evolution, and Bioinformatics School of Life Sciences Human and Comparative Genomics Laboratory The Biodesign Institute

Arizona State University

Availability: http://links.asu.edu/CartwrightCalendar Address: The Biodesign Institute, PO Box 875301, Tempe, AZ 85287-5301 USA Packages: The Biodesign Institute, 1001 S. McAllister Ave, Tempe, AZ 85287-5301 USA Office: Biodesign A-224A, 1-480-965-9949 Website: http://cartwrig.ht/

On Mon, Oct 3, 2016 at 2:41 PM, Zach notifications@github.com wrote:

I ran into this issue trying to link against the dawg headers. The path to config.h as specified in the dawg/details/mutt.h file is:

ifndef DAWG_NO_CONFIG_H

include <dawg/details/config.h>

endif

But the config.h file is located in the top-level src/ directory. I think CMAKE resolves this using config.h.cmake; I ran into this issue trying to link against the dawg headers and library files (without using CMAKE), so I am wondering if config.h should be included within the dawg/details directory?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/reedacartwright/dawg/issues/22, or mute the thread https://github.com/notifications/unsubscribe-auth/AAGOHspFBoZ39HgxoxOcrGT7-y0b41wLks5qwXaIgaJpZM4KNEyH .

zmertens commented 8 years ago

It works for a standard path it looks like (such as the default /usr/local). The issue I ran into appears that only config.h will be installed if the install prefix is non-standard. So, I think it's not a real issue since most users would presumably use the standard path.

reedacartwright commented 8 years ago

If it doesn't work for installing to a non-standard prefix, then we need to fix that.

Reed A. Cartwright, PhD Barrett Honors Faculty Assistant Professor of Genomics, Evolution, and Bioinformatics School of Life Sciences Human and Comparative Genomics Laboratory The Biodesign Institute

Arizona State University

Availability: http://links.asu.edu/CartwrightCalendar Address: The Biodesign Institute, PO Box 875301, Tempe, AZ 85287-5301 USA Packages: The Biodesign Institute, 1001 S. McAllister Ave, Tempe, AZ 85287-5301 USA Office: Biodesign A-224A, 1-480-965-9949 Website: http://cartwrig.ht/

On Mon, Oct 3, 2016 at 4:17 PM, Zach notifications@github.com wrote:

It works for a standard path it looks like (such as the default /usr/local). The issue I ran into appears that only config.h will be installed if the install prefix is non-standard and the other headers are not (under ${CMAKE_INSTALL_PREFIX}). So, I think it's not a real issue since most users would presumably use the standard path.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/reedacartwright/dawg/issues/22#issuecomment-251254347, or mute the thread https://github.com/notifications/unsubscribe-auth/AAGOHo02mMh2tyQ2kih2cCS5e2SA3KCXks5qwY0EgaJpZM4KNEyH .

zmertens commented 8 years ago

Just tested non-standard path and it installs the headers correctly as well.