Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Setting Cach Variables for CMake Project(How to set CMake variables to be remembered past a re-configuration)
Setting Cach Variables for CMake Project [message #1833307] Thu, 08 October 2020 17:53
Michael Schmeing is currently offline Michael SchmeingFriend
Messages: 2
Registered: October 2020
Junior Member
I am writing a C++ program using the C++ CMake project type. The program requires a library that I have not installed in one of the standard places (it is not part of my distribution). The library comes with a CMake Find Module which allows to set a variable containing the root path to search for the library (kind of like the --prefix option from configure).
While setting the variable using cmake-gui works, the value is discarded for each of the regular calls to cmake to (re-)configure the project.
My question therefore is, how can I tell eclipse or rather the eclipse cmake builder to set the variable, whenever it calls cmake?
Previous Topic:C/C++ IDE Java error
Next Topic:remote SSH debug fail, C application using Eclipse on Ubuntu
Goto Forum:
  


Current Time: Fri Oct 04 00:16:08 GMT 2024

Powered by FUDForum. Page generated in 0.03737 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top