Project

General

Profile

Bug #498

CMake GSL Logic Issues

Added by Kyle Beauchamp over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Erik Lindahl
Category:
analysis tools
Target version:
Affected version - extra info:
Affected version:
Difficulty:
uncategorized
Close

Description

This applies to the GIT as of Aug. 6.

When building on a system (windows XP) without GSL, CMake tries to detect GSL and fails, leading to this error:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
GSL_GSL_LIBRARY
linked by target "gmxana" in directory Y:/fah_windows_build/gromacs-aug6/src/tools

Configuring incomplete, errors occurred!

To solve the problem, I have to manually set GSL_GSL_LIBRARY to None. This is a minor inconvenience. In theory, CMake should be able to handle this automatically.

A simple change to CMakeLists.txt in the root gromacs directory might solve this problem, although I'm not sure how this affects the tool-building logic elsewhere. I think we just need to add an else statement (after if(GSL_FOUND)) and set(GSL_GSL_LIBRARY None).

Clearly, this is not a significant problem, but fixing it is probably better than having people harass the GMX lists because of it.

History

#1 Updated by Erik Lindahl over 9 years ago

GSL has been a problem for a while, and we've made a decision to move away from it. I've simply disabled it entirely in Cmake for now.

Also available in: Atom PDF