Changeset: 62a7c414bb1d for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=62a7c414bb1d
Modified Files:
        sql/server/CMakeLists.txt
Branch: cmake-fun
Log Message:

merged


diffs (18 lines):

diff --git a/sql/server/CMakeLists.txt b/sql/server/CMakeLists.txt
--- a/sql/server/CMakeLists.txt
+++ b/sql/server/CMakeLists.txt
@@ -14,9 +14,11 @@ bison_target(sqlparser sql_parser.y ${CM
                        COMPILE_FLAGS "-d -p sql -r all" DEFINES_FILE 
${CMAKE_CURRENT_BINARY_DIR}/sql_parser.tab.h)
 add_library(bison_obj OBJECT ${BISON_sqlparser_OUTPUTS})
 set_target_properties(bison_obj PROPERTIES POSITION_INDEPENDENT_CODE ON)
-check_c_compiler_flag("-Wno-unreachable-code" 
COMPILER_-Wno-unreachable-code_FLAG)
-if(COMPILER_-Wno-unreachable-code_FLAG)
-       target_compile_options(bison_obj PRIVATE -Wno-unreachable-code) # use 
this flag only to compile the bison output
+if(NOT MSVC)
+       check_c_compiler_flag("-Wno-unreachable-code" 
COMPILER_-Wno-unreachable-code_FLAG)
+       if(COMPILER_-Wno-unreachable-code_FLAG)
+               target_compile_options(bison_obj PRIVATE -Wno-unreachable-code) 
# use this flag only to compile the bison output
+       endif()
 endif()
 
 add_library(sqlserver STATIC
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to