File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -174,12 +174,19 @@ if(BOOST_CONTEXT_IMPLEMENTATION STREQUAL "fcontext")
174
174
175
175
set (IMPL_SOURCES ${ASM_SOURCES} src/fcontext.cpp )
176
176
177
- if (BOOST_CONTEXT_ASSEMBLER STREQUAL masm AND BOOST_CONTEXT_ARCHITECTURE STREQUAL i386 )
178
- set_source_files_properties (${ASM_SOURCES} PROPERTIES COMPILE_FLAGS "/safeseh" )
177
+ if (BOOST_CONTEXT_ASSEMBLER STREQUAL masm )
178
+
179
+ set_property (SOURCE ${ASM_SOURCES} APPEND PROPERTY COMPILE_OPTIONS "/nologo" )
180
+
181
+ if (BOOST_CONTEXT_ARCHITECTURE STREQUAL i386 )
182
+ set_property (SOURCE ${ASM_SOURCES} APPEND PROPERTY COMPILE_OPTIONS "/safeseh" )
183
+ endif ()
179
184
endif ()
180
185
181
186
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" )
182
187
set_property (SOURCE ${ASM_SOURCES} APPEND PROPERTY COMPILE_OPTIONS "-x" "assembler-with-cpp" )
188
+ elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" )
189
+ set_property (SOURCE ${ASM_SOURCES} APPEND PROPERTY COMPILE_OPTIONS "-Wno-unused-command-line-argument" )
183
190
endif ()
184
191
185
192
enable_language (${ASM_LANGUAGE} )
You can’t perform that action at this time.
0 commit comments