File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 1- # Copyright (c) 2010, 2017 , Oracle and/or its affiliates. All rights reserved.
1+ # Copyright (c) 2010, 2019 , Oracle and/or its affiliates. All rights reserved.
22#
33# This program is free software; you can redistribute it and/or modify
44# it under the terms of the GNU General Public License as published by
@@ -87,6 +87,8 @@ IF(MSVC)
8787 # information for use with the debugger. The symbolic debugging
8888 # information includes the names and types of variables, as well as
8989 # functions and line numbers. No .pdb file is produced by the compiler.
90+ # We can't use /ZI too since it's causing __LINE__ macros to be non-
91+ # constant on visual studio and hence XCom stops building correctly.
9092 FOREACH (lang C CXX)
9193 SET (CMAKE_${lang} _FLAGS_RELEASE "${CMAKE_${lang} _FLAGS_RELEASE} /Z7" )
9294 ENDFOREACH ()
@@ -99,6 +101,7 @@ IF(MSVC)
99101 STRING (REPLACE "/MD" "/MT" "${flag} " "${${flag} }" )
100102 ENDIF ()
101103 STRING (REPLACE "/Zi" "/Z7" "${flag} " "${${flag} }" )
104+ STRING (REPLACE "/ZI" "/Z7" "${flag} " "${${flag} }" )
102105 SET ("${flag} " "${${flag} } /EHsc" )
103106 ENDFOREACH ()
104107
You can’t perform that action at this time.
0 commit comments