Re: [AD] make cmake guess the CMAKE_INSTALL_PREFIX |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On 2008-09-23, Thomas Fjellstrom <tfjellstrom@xxxxxxxxxx> wrote:
> Should we make cmake guess the CMAKE_INSTALL_PREFIX to go along with guessing
> MINGDIR? I think it'd be really handy to set CMAKE_INSTALL_PREFIX to MINGDIR
> instead of letting cmake pick something like "C:\Program Files\ALLEGRO".
It should be doing that already.
# ... detect MINGDIR here
# Install to MINGDIR
if(INSTALL_PREFIX STREQUAL "")
set(CMAKE_INSTALL_PREFIX ${MINGDIR})
else(INSTALL_PREFIX STREQUAL "")
set(CMAKE_INSTALL_PREFIX ${INSTALL_PREFIX})
endif(INSTALL_PREFIX STREQUAL "")
Peter