Changeset: 4c50f4521f96 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/4c50f4521f96
Modified Files:
cmake/monetdb-packages.cmake
Branch: default
Log Message:
Add quotes when expanding LINUX_DISTRO
get_os_release_info might return an empty string stripped of the quotes, and in
this case 'if' is called with two arguments and fails.
This happened when I built MonetDB on gnu guix.
diffs (12 lines):
diff --git a/cmake/monetdb-packages.cmake b/cmake/monetdb-packages.cmake
--- a/cmake/monetdb-packages.cmake
+++ b/cmake/monetdb-packages.cmake
@@ -23,7 +23,7 @@ include(monetdb-wix-packages)
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
get_os_release_info(LINUX_DISTRO LINUX_DISTRO_VERSION)
- if (${LINUX_DISTRO} STREQUAL "debian")
+ if ("${LINUX_DISTRO}" STREQUAL "debian")
monetdb_debian_extra_files()
endif()
endif()
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]