Re: [CMake] CMAKE_SIZEOF_VOID_P is unset when building libgit2 on Windows

2016-03-29 Thread Sebastian Schuberth
On 3/29/2016 11:39, Sebastian Schuberth wrote: >>$ cat CMakeLists.txt >>cmake_minimum_required(VERSION 3.5) >>project(test C) >>message("${CMAKE_SIZEOF_VOID_P}") >> >> If that reproduces the problem, try configuring with --debug-trycompile >> so that the

Re: [CMake] CMAKE_SIZEOF_VOID_P is unset when building libgit2 on Windows

2016-03-29 Thread Sebastian Schuberth
On 3/28/2016 16:09, Brad King wrote: >> /usr/bin/sh: -c: line 0: syntax error near unexpected token `(' >> /usr/bin/sh: -c: line 0: `C:/Ruby-DevKit/mingw/bin/gcc.exe-fPIC >> -o CMakeFiles/cmTC_c0166.dir/CMakeCCompilerABI.c.obj -c \C:/Program >> Files

Re: [CMake] CMAKE_SIZEOF_VOID_P is unset when building libgit2 on Windows

2016-03-28 Thread Brad King
On 03/25/2016 05:08 PM, Sebastian Schuberth wrote: > Looking at CMakeError.log was a good hint. I found: > > C:/Ruby-DevKit/mingw/bin/gcc.exe-fPIC-o > CMakeFiles/cmTC_c0166.dir/CMakeCCompilerABI.c.obj -c "C:/Program > Files (x86)/CMake/share/cmake-3.5/Modules/CMakeCCompilerABI.c" > >

Re: [CMake] CMAKE_SIZEOF_VOID_P is unset when building libgit2 on Windows

2016-03-25 Thread Gregor Jasny via CMake
On 25/03/16 22:11, Sebastian Schuberth wrote: > I also just realized CMAKE_C_ABI_COMPILER is set to FALSE in > CMakeCCompiler.cmake. Looking at CMakeError.log was a good hint. I > found: > > ---8<--- > Building C object CMakeFiles/cmTC_c0166.dir/CMakeCCompilerABI.c.obj > >

Re: [CMake] CMAKE_SIZEOF_VOID_P is unset when building libgit2 on Windows

2016-03-25 Thread Sebastian Schuberth
On 3/24/2016 16:53, Brad King wrote: Configuring libgit2 fails as CMake does not set CMAKE_SIZEOF_VOID_P (nor CMAKE_C_SIZEOF_DATA_PTR), see the attached CMakeCCompiler.cmake file. I tried to search CMake's source code to find out how the value of @CMAKE_C_SIZEOF_DATA_PTR@ is determined in

Re: [CMake] CMAKE_SIZEOF_VOID_P is unset when building libgit2 on Windows

2016-03-24 Thread Brad King
On 03/24/2016 11:28 AM, Sebastian Schuberth wrote: > Configuring libgit2 fails as CMake does not set CMAKE_SIZEOF_VOID_P > (nor CMAKE_C_SIZEOF_DATA_PTR), see the attached CMakeCCompiler.cmake file. > > I tried to search CMake's source code to find out how the value of > @CMAKE_C_SIZEOF_DATA_PTR@