# CMake Deprecation Warning

**URL:** <https://discourse.cmake.org/t/cmake-deprecation-warning/2406>\
**Category:** Code\
**Tags:** os:linux, gen:makefiles\
**Created:** [December 22, 2020, 4:11pm UTC](https://discourse.cmake.org/t/cmake-deprecation-warning/2406 "2020-12-22T16:11:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Junior27](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/j/d78d45/32.png) [@Junior27](https://discourse.cmake.org/u/Junior27)\
**Post date:** [December 22, 2020, 4:11pm UTC](https://discourse.cmake.org/t/cmake-deprecation-warning/2406/1 "2020-12-22T16:11:33Z")

</div>

Hello

Sorry for my poor English and if question has been already solve.

I have never used cmake, I only want to turn a radiosonde to an amateur radio direction finding contests. For this I want to use this tutorial on GitHub: [https://github.com/darksidelemm/RS41FOX](https://github.com/darksidelemm/RS41FOX)

I instaIl cmake 3.16, I download the RS4fox files, I unzip, I also download the latest GNU ARM Embedded toolchain, I uznip it in ~/opt/  
I modify my CMakeLists.txt for set the correct path to the un-tar’d directory (of GNU toolchain).  
I type cmake . and I have this error:

CMake Deprecation Warning at /usr/share/cmake-3.16/Modules/CMakeForceCompiler.cmake:75 (message):  
The CMAKE\_FORCE\_C\_COMPILER macro is deprecated. Instead just set  
CMAKE\_C\_COMPILER and allow CMake to identify the compiler.  
Call Stack (most recent call first):  
CMakeLists.txt:13 (CMAKE\_FORCE\_C\_COMPILER)

CMake Deprecation Warning at /usr/share/cmake-3.16/Modules/CMakeForceCompiler.cmake:89 (message):  
The CMAKE\_FORCE\_CXX\_COMPILER macro is deprecated. Instead just set  
CMAKE\_CXX\_COMPILER and allow CMake to identify the compiler.  
Call Stack (most recent call first):  
CMakeLists.txt:14 (CMAKE\_FORCE\_CXX\_COMPILER)

– Configuring done  
– Generating done  
– Build files have been written to: /home/vincent/RS41FOX-master

Someone can help me?  
Thanks  
Vincent from France

---

<div class="post-metadata">

**Author:** ![scivision](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/s/a87d85/32.png) [@scivision](https://discourse.cmake.org/u/scivision)\
**Post date:** [December 23, 2020, 12:52am UTC](https://discourse.cmake.org/t/cmake-deprecation-warning/2406/2 "2020-12-23T00:52:08Z")

</div>

Hi Vincent, Try to build anyway. The warnings are just as they say, the functions are deprecated but may still work.  
So try:

```auto
make

```

---

<div class="post-metadata">

**Author:** ![Junior27](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/j/d78d45/32.png) [@Junior27](https://discourse.cmake.org/u/Junior27)\
**Post date:** [December 23, 2020, 8:08am UTC](https://discourse.cmake.org/t/cmake-deprecation-warning/2406/3 "2020-12-23T08:08:54Z")

</div>

Thanks for answer, I try and I obtain this error:

Scanning dependencies of target RS41FOX.elf  
[4%] Building C object CMakeFiles/RS41FOX.elf.dir/cmsis\_boot/startup/startup\_stm32f10x\_md\_vl.c.obj  
[9%] Building C object CMakeFiles/RS41FOX.elf.dir/cmsis\_boot/system\_stm32f10x.c.obj  
[14%] Building C object CMakeFiles/RS41FOX.elf.dir/delay.c.obj  
[19%] Building C object CMakeFiles/RS41FOX.elf.dir/init.c.obj  
[23%] Building C object CMakeFiles/RS41FOX.elf.dir/main.c.obj  
[28%] Building C object CMakeFiles/RS41FOX.elf.dir/morse.c.obj  
[33%] Building C object CMakeFiles/RS41FOX.elf.dir/radio.c.obj  
[38%] Building C object CMakeFiles/RS41FOX.elf.dir/stm\_lib/src/misc.c.obj  
[42%] Building C object CMakeFiles/RS41FOX.elf.dir/stm\_lib/src/stm32f10x\_adc.c.obj  
[47%] Building C object CMakeFiles/RS41FOX.elf.dir/stm\_lib/src/stm32f10x\_dma.c.obj  
[52%] Building C object CMakeFiles/RS41FOX.elf.dir/stm\_lib/src/stm32f10x\_flash.c.obj  
[57%] Building C object CMakeFiles/RS41FOX.elf.dir/stm\_lib/src/stm32f10x\_gpio.c.obj  
[61%] Building C object CMakeFiles/RS41FOX.elf.dir/stm\_lib/src/stm32f10x\_pwr.c.obj  
[66%] Building C object CMakeFiles/RS41FOX.elf.dir/stm\_lib/src/stm32f10x\_rcc.c.obj  
[71%] Building C object CMakeFiles/RS41FOX.elf.dir/stm\_lib/src/stm32f10x\_spi.c.obj  
[76%] Building C object CMakeFiles/RS41FOX.elf.dir/stm\_lib/src/stm32f10x\_tim.c.obj  
[80%] Building C object CMakeFiles/RS41FOX.elf.dir/stm\_lib/src/stm32f10x\_usart.c.obj  
[85%] Building C object CMakeFiles/RS41FOX.elf.dir/syscalls/syscalls.c.obj  
[90%] Building C object CMakeFiles/RS41FOX.elf.dir/ublox.c.obj  
[95%] Building C object CMakeFiles/RS41FOX.elf.dir/util.c.obj  
[100%] Linking C executable RS41FOX.elf  
/home/vincent/opt/bin/…/lib/gcc/arm-none-eabi/10.2.1/…/…/…/…/arm-none-eabi/bin/ld: CMakeFiles/RS41FOX.elf.dir/main.c.obj:/home/vincent/RS41FOX-master/init.h:1: multiple definition of `ADCVal'; CMakeFiles/RS41FOX.elf.dir/init.c.obj:/home/vincent/RS41FOX-master/init.h:1: first defined here /home/vincent/opt/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld: CMakeFiles/RS41FOX.elf.dir/ublox.c.obj:/home/vincent/RS41FOX-master/init.h:1: multiple definition of `ADCVal’; CMakeFiles/RS41FOX.elf.dir/init.c.obj:/home/vincent/RS41FOX-master/init.h:1: first defined here  
collect2: error: ld returned 1 exit status  
make[2]: \*\*\* [CMakeFiles/RS41FOX.elf.dir/build.make:369 : RS41FOX.elf] Erreur 1  
make[1]: \*\*\* [CMakeFiles/Makefile2:104 : CMakeFiles/RS41FOX.elf.dir/all] Erreur 2  
make: \*\*\* [Makefile:84 : all] Erreur 2

You have an idea of the problem?

Thanks  
Vincent

---

<div class="post-metadata">

**Author:** ![scivision](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/s/a87d85/32.png) [@scivision](https://discourse.cmake.org/u/scivision)\
**Post date:** [December 30, 2020, 1:58am UTC](https://discourse.cmake.org/t/cmake-deprecation-warning/2406/4 "2020-12-30T01:58:23Z")

</div>

No, this looks like a problem in the project itself. I would try to open a GitHub Issue for that project RS41Fox
