Re: [CMake] printing CMAKE_CXX_FLAGS_* based on build type

2019-09-27 Thread fdk17
Are you using a generator that uses CMAKE_BUILD_TYPE and has it set to a known value? Build type doesn’t have to be set and multi-config generators don’t use it. On Fri, Sep 27, 2019, at 4:18 PM, Zdenko Podobny wrote: > Hello, > > I try to print CMAKE_CXX_FLAGS_DEBUG/CMAKE_CXX_FLAGS_RELEASE

Re: [CMake] toolchain file - cross-compiling windows-amd64->windows-x86

2019-09-17 Thread fdk17
As I recall for myself, simply using the Visual Studio Generator with the -A option was all that was needed to build for Win32. You don't need a toolchain file because the generator already knows how to setup a Visual Studio Project to target Win32. Even the documentation for cross-compiling

Re: [CMake] The connection to cmake-server was terminated unexpectedly [cms-client] cmake-server exited with status null (SIGSEGV)

2019-09-04 Thread fdk17
https://github.com/microsoft/vscode-cmake-tools/issues/752 states that it ran out of stack and the log shows what looks like to be involved with a recursive loop in some CMakeLists.txt. A call depth of 27491 seems a bit excessive. After the second call to FindPackage it just seems to be doing

Re: [CMake] modify cmake build arguments

2019-08-30 Thread fdk17
On Thu, 2019-08-29 at 18:27 +0100, hex wrote: > hello community, > > CMake builds a C project with gcc -o target_name. I have a compiler > very similar to GCC and I am trying configure CMake C language for > it. > > The compiler does not support the -o

Re: [CMake] modify cmake build arguments

2019-08-30 Thread fdk17
On Fri, Aug 30, 2019, at 1:47 AM, Eric Doenges wrote: > On 29.08.2019 22:38, fdk17 wrote: >> On Thu, Aug 29, 2019, at 2:52 PM, Kyle Edwards via CMake wrote: >>> On Thu, 2019-08-29 at 18:27 +0100, hex wrote: >>> > hello community, >>> > >>> &g

Re: [CMake] modify cmake build arguments

2019-08-29 Thread fdk17
On Thu, Aug 29, 2019, at 2:52 PM, Kyle Edwards via CMake wrote: > On Thu, 2019-08-29 at 18:27 +0100, hex wrote: > > hello community, > > > > CMake builds a C project with gcc -o target_name. I have a compiler > > very similar to GCC and I am trying configure CMake C language for > > it. > > >

Re: [CMake] cmake for GHS

2019-08-29 Thread fdk17
On Thu, Aug 29, 2019, at 1:51 AM, Deepan Muthusamy (RBEI/ESP-IS44) via CMake wrote: > I want to compile c and c++ code in GHS compiler for renesas controller. > > For Mingw compiler, My code is compiling successfully. But I want to compile > for GHS. > > I have compiler available at this

Re: [CMake] FetchContent/ExternalProject and URL_HASH

2019-07-22 Thread fdk17
On Mon, Jul 22, 2019, at 11:51 AM, Dustyn Blasig wrote: > *"I don't think it is realistic to expect CMake or the underlying tools to > still give you a successful file download if you interrupt it. ;)"* > > Sorry, I didn't word that well : ) > > I was curious if CMake uses handlers behind the