Changeset: 6e23719d0664 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=6e23719d0664
Modified Files:
        tools/mserver/CMakeLists.txt
Branch: default
Log Message:

Accomodate windows


diffs (22 lines):

diff --git a/tools/mserver/CMakeLists.txt b/tools/mserver/CMakeLists.txt
--- a/tools/mserver/CMakeLists.txt
+++ b/tools/mserver/CMakeLists.txt
@@ -18,11 +18,15 @@ set(builtby $ENV{USER}) # $USER should b
 cmake_host_system_information(RESULT host QUERY HOSTNAME)
 string(APPEND builtby "@" ${host})
 
-string(TOUPPER ${CMAKE_BUILD_TYPE} build_type)
 set(compilercall ${CMAKE_C_COMPILER})
-string(APPEND compilercall " " ${CMAKE_C_FLAGS_${build_type}} ${CMAKE_C_FLAGS})
+set(linkercall ${CMAKE_LINKER})
 
-set(linkercall ${CMAKE_LINKER})
+if(${CMAKE_BUILD_TYPE})
+  string(TOUPPER ${CMAKE_BUILD_TYPE} build_type)
+  string(APPEND compilercall " " ${CMAKE_C_FLAGS_${build_type}} 
${CMAKE_C_FLAGS})
+else()
+  string(APPEND compilercall " " ${CMAKE_C_FLAGS})
+endif()
 
 configure_file(monet_version.c.in
   ${CMAKE_CURRENT_BINARY_DIR}/monet_version.c
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to