[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] Re: [CMake] Detecting MinGW MSYS or Cygwin unix style fi

From: Brad King
Subject: [Chicken-users] Re: [CMake] Detecting MinGW MSYS or Cygwin unix style file system
Date: Tue, 22 Nov 2005 11:49:46 -0500
User-agent: Debian Thunderbird 1.0.7 (X11/20051017)

Brandon J. Van Every wrote:
I notice that on Windows the default CMAKE_INSTALL_PREFIX is "C:/Program Files". However, this doesn't actually make sense to a MinGW user employing MSYS. MSYS implements a unix-style file system, so a proper prefix would more likely be "/usr/local".

CMake 2.0 used to use /usr/local as the default prefix even on Windows. This was fixed for CMake 2.2 to be a more windows-like path. We should improve the fix to work with MSys, though. Please submit a bug report here:

Does a similar issue pertain to Cygwin? Maybe not, as the archives seemed to indicate that it may use /usr/local by default.

No, because CMake builds natively under cygwin as a cygwin program. Separate CMake builds must be used for Windows and Cygwin, but the same CMake build can be used for Windows and MinGW/MSYS.

Gleaning knowledge from the archives, I have created a PreLoad.cmake which successfully detects MSYS. My understanding is that this command must be in PreLoad.cmake, that it cannot just be in CMakeLists.txt, as it must be set before anything else happens. Correct?

        "MSYS default install path")

That looks fine to me. Please include it in the bug report. It doesn't matter if OSTYPE is set on other platforms or not. As long as it is set for msys then it can be used to detect msys.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]