Skip to content

Commit

Permalink
Prevent cmake from finding includes in miniconda.
Browse files Browse the repository at this point in the history
On Ubuntu, iconv should be used from the system/compiler library but cmake finds an (inconsistent) include file in miniconda.  This change ensures that cmake will ignore all miniconda includes.
  • Loading branch information
ktlim committed Oct 3, 2017
1 parent e029824 commit 7e20540
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ups/eupspkg.cfg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@

config()
{
cmake . -DCMAKE_INSTALL_PREFIX=${PREFIX}
# Prevent CMake from finding include files distributed in $(dirname
# python)/../include. This is CMake's default behaviour, but can cause us to
# erroneously use headers distributed by e.g. Anaconda.
PYTHONINCDIR=$(which python | sed -e's|bin/python|include|')
cmake . -DCMAKE_INSTALL_PREFIX=${PREFIX} -DCMAKE_SYSTEM_IGNORE_PATH=${PYTHONINCDIR}
}

0 comments on commit 7e20540

Please sign in to comment.