From 4704159f7317b73dc779819f132516f8d273f0db Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Tue, 1 Jan 2013 05:22:05 -0500 Subject: [PATCH] Fix cmake build with sun studio --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ee341a85..dd599180 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -122,6 +122,10 @@ if(CMAKE_SYSTEM_PROCESSOR MATCHES "^sparc") zmq_check_cxx_flag_prepend("-mcpu=v9") endif() +if(${CMAKE_CXX_COMPILER_ID} MATCHES "SunPro") + zmq_check_cxx_flag_prepend("-features=zla") +endif() + if(CMAKE_SYSTEM_NAME MATCHES "SunOS" OR CMAKE_SYSTEM_NAME MATCHES "NetBSD") message(STATUS "Checking whether atomic operations can be used")