cadabra2/cadabra2-cmake-error.patch
Ismail Dönmez 1861c7a451 Accepting request 490019 from home:badshah400:branches:science
[Sorry for the multiple subs] New package: cadabra2 -- A CAS for solving problems in field theory (intended to replace cadabra)

OBS-URL: https://build.opensuse.org/request/show/490019
OBS-URL: https://build.opensuse.org/package/show/science/cadabra2?expand=0&rev=1
2017-05-03 16:08:41 +00:00

14 lines
615 B
Diff

Index: cadabra2-2.1.4/CMakeLists.txt
===================================================================
--- cadabra2-2.1.4.orig/CMakeLists.txt
+++ cadabra2-2.1.4/CMakeLists.txt
@@ -17,7 +17,7 @@ endif()
if(GIT_COMMIT_DATE)
set(CADABRA_VERSION_DATE "${GIT_COMMIT_DATE}")
else()
- execute(COMMAND date -I OUTPUT_VARIABLE THE_DATE OUTPUT_STRIP_TRAILING_WHITESPACE)
+ execute_process(COMMAND date -I OUTPUT_VARIABLE THE_DATE OUTPUT_STRIP_TRAILING_WHITESPACE)
set(CADABRA_VERSION_DATE "${THE_DATE}")
endif()
message("-- Building ${CADABRA_VERSION_MAJOR}.${CADABRA_VERSION_MINOR}.${CADABRA_VERSION_PATCH}")