# Cmake compiler tool

**URL:** https://discourse.cmake.org/t/cmake-compiler-tool/2496
**Category:** Usage
**Created:** [January 8, 2021, 2:08pm UTC](https://discourse.cmake.org/t/cmake-compiler-tool/2496 "2021-01-08T14:08:22Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Khalid\_Al-kuwity](https://discourse.cmake.org/user_avatar/discourse.cmake.org/khalid_al-kuwity/32/1079_2.png) [@Khalid\_Al-kuwity](https://discourse.cmake.org/u/Khalid_Al-kuwity)
#### Post date: [January 8, 2021, 2:08pm UTC](https://discourse.cmake.org/t/cmake-compiler-tool/2496/1 "2021-01-08T14:08:22Z")

</div>

I tried to confirm the cmake confirmation on iOS 11.1, but I get incomplete error because ((CMake Error at CMakeLists.txt:3 (project): The CMAKE\_CXX\_COMPILER:

```auto
 /Library/Developer/CommandLineTools/usr/bin/c++

```

is not a full path to an existing compiler tool.

Tell CMake where to find the compiler by setting either the environment variable “CXX” or the CMake cache entry CMAKE\_CXX\_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH.))

How can I solve it?

Best regards…

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [January 8, 2021, 2:23pm UTC](https://discourse.cmake.org/t/cmake-compiler-tool/2496/2 "2021-01-08T14:23:24Z")

</div>

Do you have a space before `/Library` in your code or is that just an artifact on DIscourse?

---

<div class="post-metadata">

### Author: ![Khalid\_Al-kuwity](https://discourse.cmake.org/user_avatar/discourse.cmake.org/khalid_al-kuwity/32/1079_2.png) [@Khalid\_Al-kuwity](https://discourse.cmake.org/u/Khalid_Al-kuwity)
#### Post date: [January 8, 2021, 3:23pm UTC](https://discourse.cmake.org/t/cmake-compiler-tool/2496/3 "2021-01-08T15:23:08Z")

</div>

it is just an artifact. I found a file with the name of cmake complier and CMake cach. When tried to put the path into the CMake in terminals. It ends up by deleting the 2 files??

Do I have to make a new files and locate the path into cmake terminal? and how can I do it??

Best regards…

---

<div class="post-metadata">

### Author: ![McMartin](https://discourse.cmake.org/user_avatar/discourse.cmake.org/mcmartin/32/150_2.png) [@McMartin](https://discourse.cmake.org/u/McMartin)
#### Post date: [January 8, 2021, 4:08pm UTC](https://discourse.cmake.org/t/cmake-compiler-tool/2496/4 "2021-01-08T16:08:47Z")

</div>

Have you installed Xcode and started it once?

---

<div class="post-metadata">

### Author: ![Khalid\_Al-kuwity](https://discourse.cmake.org/user_avatar/discourse.cmake.org/khalid_al-kuwity/32/1079_2.png) [@Khalid\_Al-kuwity](https://discourse.cmake.org/u/Khalid_Al-kuwity)
#### Post date: [January 9, 2021, 8:41am UTC](https://discourse.cmake.org/t/cmake-compiler-tool/2496/5 "2021-01-09T08:41:26Z")

</div>

yes, I install it and lunch it. what can I do next?

To be honest am a physician and I don’t have that much of experience in the terminals and cmake programs, I want to install the dicom2mesh and orthomesh to help my patient for planning their operations, it is not a business work.I am trying to help my patient with whatever I have, If anyone can help me through this I will be glad and thankful for him.

---

<div class="post-metadata">

### Author: ![Khalid\_Al-kuwity](https://discourse.cmake.org/user_avatar/discourse.cmake.org/khalid_al-kuwity/32/1079_2.png) [@Khalid\_Al-kuwity](https://discourse.cmake.org/u/Khalid_Al-kuwity)
#### Post date: [January 9, 2021, 9:01am UTC](https://discourse.cmake.org/t/cmake-compiler-tool/2496/6 "2021-01-09T09:01:36Z")

</div>

When I Opened a new terminal and try to confirm the cmake to open the cmake window, I get this message

CMake Error: The source directory “/Users” does not appear to contain  
CMakeLists.txt.  
Specify --help for usage, or press the help button on the CMake GUI.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [January 11, 2021, 2:30pm UTC](https://discourse.cmake.org/t/cmake-compiler-tool/2496/7 "2021-01-11T14:30:38Z")

</div>

> [@Khalid\_Al-kuwity](#):
>
> When I Opened a new terminal and try to confirm the cmake to open the cmake window, I get this message

It seems that you’ve given `/Users` as your source directory for CMake to try and build? What command did you run?

> [@Khalid\_Al-kuwity](#):
>
> yes, I install it and lunch it. what can I do next?

The compiler should now be set up properly. Xcode does some post-install steps that it needs to work from the command line only after it is first run.

---

<div class="post-metadata">

### Author: ![Khalid\_Al-kuwity](https://discourse.cmake.org/user_avatar/discourse.cmake.org/khalid_al-kuwity/32/1079_2.png) [@Khalid\_Al-kuwity](https://discourse.cmake.org/u/Khalid_Al-kuwity)
#### Post date: [January 12, 2021, 1:34pm UTC](https://discourse.cmake.org/t/cmake-compiler-tool/2496/8 "2021-01-12T13:34:30Z")

</div>

![Screen Shot 2021-01-12 at 4.31.03 PM](https://discourse.cmake.org/uploads/default/original/2X/2/2e97dbfa3feca9c660f6164b4fc33b225d1edf54.jpeg)  
Now I am facing these difficulties, I don’t have much of experience in terminal. I don’t know what to do with these

---

<div class="post-metadata">

### Author: ![Khalid\_Al-kuwity](https://discourse.cmake.org/user_avatar/discourse.cmake.org/khalid_al-kuwity/32/1079_2.png) [@Khalid\_Al-kuwity](https://discourse.cmake.org/u/Khalid_Al-kuwity)
#### Post date: [January 12, 2021, 1:35pm UTC](https://discourse.cmake.org/t/cmake-compiler-tool/2496/9 "2021-01-12T13:35:14Z")

</div>

![Screen Shot 2021-01-12 at 4.31.10 PM](https://discourse.cmake.org/uploads/default/original/2X/5/53de36132b650e0e7592b5b36e1c6849d4487b3d.png)

I don’t have a cmake list or cash or complier files, What can I do with it?

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [January 12, 2021, 2:43pm UTC](https://discourse.cmake.org/t/cmake-compiler-tool/2496/10 "2021-01-12T14:43:07Z")

</div>

You need to point CMake at the source directory that you want to build. [This section](https://cmake.org/cmake/help/latest/guide/tutorial/index.html#id6) is a decent place to start.

---

<div class="post-metadata">

### Author: ![Khalid\_Al-kuwity](https://discourse.cmake.org/user_avatar/discourse.cmake.org/khalid_al-kuwity/32/1079_2.png) [@Khalid\_Al-kuwity](https://discourse.cmake.org/u/Khalid_Al-kuwity)
#### Post date: [January 13, 2021, 2:59pm UTC](https://discourse.cmake.org/t/cmake-compiler-tool/2496/11 "2021-01-13T14:59:07Z")

</div>

![Screen Shot 2021-01-13 at 5.58.09 PM](https://discourse.cmake.org/uploads/default/original/2X/4/4c46ac327637f63694b6fa51e87e73c8636b4fcd.jpeg)

When I try to solve the source directory and configuration. I got this

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [January 13, 2021, 4:10pm UTC](https://discourse.cmake.org/t/cmake-compiler-tool/2496/12 "2021-01-13T16:10:41Z")

</div>

This is a problem with the project in question (DicomToMesh?). This error should be reported to the developers of that project.
