[CMake] How to build ccmake.exe on Windows?

David Cole david.cole at kitware.com
Fri Nov 11 15:45:23 EST 2011


UNIX is ON for cygwin based builds. (However, WIN32 is not ON any
longer. It used to be, but the cygwin guys didn't want it that way, so
now WIN32 is OFF.)

Assuming you are in a directory named "CMake" which is the CMake
source tree, you can do the following to produce a cygwin based CMake
(in a raw cygwin env with no Visual Studio stuff in it):

mkdir ../CMake-build
cd ../CMake-build
../CMake/bootstrap
make

Then you can use that cmake or ccmake in the cygwin environment.


HTH,
David


On Fri, Nov 11, 2011 at 3:28 PM, John Drescher <drescherjm at gmail.com> wrote:
> On Fri, Nov 11, 2011 at 3:24 PM, Robert Dailey <rcdailey at gmail.com> wrote:
>> According to the root CMakeLists.txt in cmake, there is no way to do this on
>> Windows. I'll probably have to build it through Cygwin itself, assuming UNIX
>> is truthy when using Cygwin.
>>   # Use curses?
>>   IF (UNIX)
>>     # there is a bug in the Syllable libraries which makes linking ccmake
>> fail, Alex
>>     IF(NOT "${CMAKE_SYSTEM_NAME}" MATCHES syllable)
>>       SET(CURSES_NEED_NCURSES TRUE)
>>       FIND_PACKAGE(Curses QUIET)
>>       IF (CURSES_LIBRARY)
>>         OPTION(BUILD_CursesDialog "Build the CMake Curses Dialog ccmake" ON)
>>       ELSE (CURSES_LIBRARY)
>>         MESSAGE("Curses libraries were not found. Curses GUI for CMake will
>> not be built.")
>>         SET(BUILD_CursesDialog 0)
>>       ENDIF (CURSES_LIBRARY)
>>     ELSE(NOT "${CMAKE_SYSTEM_NAME}" MATCHES syllable)
>>       SET(BUILD_CursesDialog 0)
>>     ENDIF(NOT "${CMAKE_SYSTEM_NAME}" MATCHES syllable)
>>   ELSE (UNIX)
>>     SET(BUILD_CursesDialog 0)
>>   ENDIF (UNIX)
>> ---------
>> Robert Dailey
>>
>>
>> On Fri, Nov 11, 2011 at 2:21 PM, Robert Dailey <rcdailey at gmail.com> wrote:
>>>
>>> I'm using Cygwin with the MSVC toolchain and I need ccmake.exe. I can't
>>> use the one from the Cygwin package manager because it's older than the
>>> version I'm using. I'd like to build it myself through Visual Studio like I
>>> did with cmake and cmake-gui if possible. Any help?
>>>
>
> BTW, there is a cmake in cygwin setup. I believe it is recommended to
> use that instead of the windows cmake.exe
>
> John
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>


More information about the CMake mailing list