CMAKE not working when invoked from Codelite

General questions regarding the usage of CodeLite
ultrajunkie
CodeLite Enthusiast
Posts: 13
Joined: Mon Mar 20, 2017 11:05 pm
Genuine User: Yes
IDE Question: C++
Contact:

CMAKE not working when invoked from Codelite

Post 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?

User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: CMAKE not working when invoked from Codelite

Post by eranif »

Make sure that the correct cmake executable is used

You can control the environment variables within CodeLite:

Settings -> environment variables

Make sure you have read the HOW TO POST thread
Post Reply