Re: [CMake] Fwd: Linking GSL to cmake using command line

2019-09-24 Thread Avraham Shukron
No, setting a variable in cmake is done with the 'set(GSL_ROOT /path/to/gsl)' command. You can alternatively set a similarly named environment variable when invoking cmake: GSL_ROOT="/path/to/gsl" cmake On Wed, Sep 25, 2019, 05:15 Sachithra Weerasooriya wrote: > I did install it in a non st

Re: [CMake] Fwd: Linking GSL to cmake using command line

2019-09-24 Thread Sachithra Weerasooriya
I did install it in a non standard path. Which is why was trying to figure out how to link gsl. I couldn’t use homebrew since I don’t have root permissions on the machine. Do you just edit the text file just before calling find_package statement like this ? GSL_ROOT_DIR=\path\to\gsl Thanks! Be

Re: [CMake] Fwd: Linking GSL to cmake using command line

2019-09-24 Thread Avraham Shukron
The macro looks fine (assuming you actually call it somewhere). And I also assume that the line that fails is the find_package(GSL REQUIRED) I suspect that it fails because you installed GSL in a local directory that is not in a location known to cmake (E.g not in /usr/local/lib or something simil

Re: [CMake] Fwd: Linking GSL to cmake using command line

2019-09-24 Thread Avraham Shukron
Hi Sachi! Could you paste a minimal CMakeLists.txt file that demonstrate the problem, along with details about your OS version and how did you install GSL? Thanks! On Tue, Sep 24, 2019 at 7:55 PM Raymond Wan wrote: > Hi Sachi and everyone, > > Sorry, I didn't realise her original message wasn'

[CMake] Fwd: Linking GSL to cmake using command line

2019-09-24 Thread Raymond Wan
Hi Sachi and everyone, Sorry, I didn't realise her original message wasn't CC'ed to the list. Please keep replies to the list, Sachi, unless there's a good reason you shouldn't. It will also allow someone to jump in if I've said something incorrectly about your problem. Ray -- Forwarde