Page 1 of 1

CMAKE not working when invoked from Codelite

Posted: Mon Nov 06, 2023 7:44 pm
by ultrajunkie

I use CMAKE once in a while but with one of my projects it will not generate a proper makefile to build the project.

Errors:
cmake_minimum_required(VERSION 3.2) --> CMAKE claims that it should be at least 3.5
string(STRIP ${CL_TMP_VAR} CL_VAR_1) --> CMAKE claims that 2 variables are required, putting a comma between the variables does the trick (several locations)

C1.EXE: warning: g: linker input file unused because linking not done
C
1.EXE: error: g: linker input file not found: No such file or directory

However it seems that the obj files are generated during compilation.

Any ideas?


Re: CMAKE not working when invoked from Codelite

Posted: Tue Nov 07, 2023 11:44 pm
by eranif

Make sure that the correct cmake executable is used

You can control the environment variables within CodeLite:

Settings -> environment variables