Re: [AD] make cmake guess the CMAKE_INSTALL_PREFIX |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On Tuesday 23 September 2008, Peter Wang wrote:
> 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
>
Yeah, saw that, but for some reason it doesn't seem to be working. Which is
odd since it sets INSTALL_PREFIX to "" closer to the top of the file. maybe
cmake-gui sets some things it shouldn't?
And I think we should be setting a bunch of the non windows WANT_ options to
"off" or "no" or whatever if its building on win32.
--
Thomas Fjellstrom
tfjellstrom@xxxxxxxxxx