Why cmake .. -GXcode does not generate makefile

I wrote a CMakeLists.txt file to compile a simple "hello word" example.

cmake_minimum_required(VERSION 2.6)

#Declaration du projet
project(MYfirstcamke)

#declaration de l'executable
add_executable(
  my_executable
  main.cpp)

When I type cmake, It generates a makefile but when I use cmake .. -GXcode. I did not get a makefile. What is the problem?

Answers


I don't know CMake either, however I would have expected -GXcode to generate an Xcode project (a .xcodeproj "file").

Xcode doesn't use Makefiles.


It's -G Xcode, not -GXcode.

And the path should come after all the options, i.e.cmake -G whatever .. rather than cmake .. -G whatever.


Need Your Help

Is it desirable to use Ansible for creating a docker image

docker ansible

I know we can create docker images using ansible. I'm learning and doing POC work.

Unable to resolve dependencies. 'jQuery 2.1.4' is not compatible with 'bootstrap 3.3.6 constraint: jQuery (≥ 1.9.1 && < 3.0.0)'

jquery asp.net twitter-bootstrap jquery-ui visual-studio-2015

I am trying to add "jQuery.UI.Theme.Redmond" in my ASP.NET web forms application through Nuget Package Manager but, I am seeing the following error,