jeromerobert / hmat-oss

A hierarchical matrix C/C++ library
GNU General Public License v2.0
22 stars 11 forks source link

fix squeeze's cmake 2.8.2 undefined CMAKE_CURRENT_LIST_DIR #18

Closed jschueller closed 9 years ago

jschueller commented 9 years ago

it's ok too, wouldn't it be:

if(NOT DEFINED CMAKE_CURRENT_LIST_DIR )

?

I've checked the documentation for the first version defining CMAKE_CURRENT_LIST_DIR.

jschueller commented 9 years ago

ok, modified

dbarbier commented 9 years ago

If I understand http://public.kitware.com/Bug/view.php?id=11675 some CMake version did define an empty CMAKE_CURRENT_LIST_DIR variable, this is why it is better to drop DEFINED.

jschueller commented 9 years ago

ok, just tested it on squeeze