Project

General

Profile

Bug #605

the CMake generated install-mdrun rule does not depend on the mdrun target

Added by Szilárd Páll about 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Category:
mdrun
Target version:
Affected version - extra info:
Affected version:
Difficulty:
uncategorized
Close

Description

The CMake generated install-mdrun rules does not have a depencency on the mdrun[-gpu] binary itseld. Therefor one has to do make mdrun first and can only install afterward. Moreover, one runs the risk of installing an outdated binary when the source gets updated.

Reproduce with:

$ cd GMX_CLEAN_BUILD_DIR
$ cmake GMX_SOURCE_DIR
[..]
$ $ make install-mdrun
Scanning dependencies of target install-mdrun
Installing mdrun
-- Install configuration: "Release"
-- Install component: "mdrun"
CMake Error at cmake_install.cmake:40 (FILE):
file INSTALL cannot find
"/mnt/data/projects/gmx/release-4.5/build_cpu/src/kernel/mdrun".
Call Stack (most recent call first):
/mnt/data/projects/gmx/release-4.5/build_cpu/src/cmake_install.cmake:39 (INCLUDE)
/mnt/data/projects/gmx/release-4.5/build_cpu/cmake_install.cmake:40 (INCLUDE)

make3: * [src/kernel/CMakeFiles/install-mdrun] Error 1
make2:
[src/kernel/CMakeFiles/install-mdrun.dir/all] Error 2
make1:
[src/kernel/CMakeFiles/install-mdrun.dir/rule] Error 2
make: *
[install-mdrun] Error 2

Associated revisions

Revision 1eaa8574 (diff)
Added by Szilárd Páll about 9 years ago

fixed make install-mdrun issue (bug #605)

History

#1 Updated by Szilárd Páll about 9 years ago

Fixed in commit 1eaa8574.

Also available in: Atom PDF