diff --git a/CMakeLists.txt b/CMakeLists.txt index 91cfe53a01a8cc32586facfcb87fb4154de10d5b..1da432cb210a23eba51ae57adffbd092c7750d68 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -87,11 +87,10 @@ check_library_exists("" __libc_stack_end "" HAVE_LIBC_STACK_END) # in the top level CMakeLists.txt, to ensure a consistent # header file layout across the entire project. # -if (${CMAKE_SYSTEM_PROCESSOR} MATCHES "86") +if (${CMAKE_SYSTEM_PROCESSOR} MATCHES "86" OR ${CMAKE_SYSTEM_PROCESSOR} MATCHES "amd64") set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DCORO_ASM") else() set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DCORO_SJLJ") - set_target_properties(coro PROPERTIES COMPILE_FLAGS "-DCORO_SJLJ") endif() # # Perform build type specific configuration.