biod.pnpi.spb.ru
/
alexxy
/
gromacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df1591e
)
Fix for CMake builds so that they don't fail even when version.c hasn't been generated.
author
Rossen Apostolov
<rossen@cbr.su.se>
Wed, 11 Aug 2010 09:52:08 +0000
(11:52 +0200)
committer
Rossen Apostolov
<rossen@cbr.su.se>
Wed, 11 Aug 2010 09:52:08 +0000
(11:52 +0200)
src/gmxlib/CMakeLists.txt
patch
|
blob
|
history
diff --git
a/src/gmxlib/CMakeLists.txt
b/src/gmxlib/CMakeLists.txt
index a6f8dd605031920e59116a0e719b822d7f8670fd..72a604172519bae2949fec31553185d1c2a762f0 100644
(file)
--- a/
src/gmxlib/CMakeLists.txt
+++ b/
src/gmxlib/CMakeLists.txt
@@
-26,7
+26,10
@@
file(GLOB GMXLIB_SOURCES *.c
# This source file is generated
file(GLOB VERSION_SOURCE version.c)
-list(REMOVE_ITEM GMXLIB_SOURCES ${VERSION_SOURCE})
+
+if(VERSION_SOURCE)
+ list(REMOVE_ITEM GMXLIB_SOURCES ${VERSION_SOURCE})
+endif(VERSION_SOURCE)
# add version.c to the list of sources and tell cmake that it is generated
if(USE_VERSION_H)