You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ac...@apache.org on 2016/11/02 02:54:01 UTC
[41/50] [abbrv] qpid-proton git commit: PROTON-1333: CMake error if
no C++ compiler avaliable
PROTON-1333: CMake error if no C++ compiler avaliable
Change if() statement to use variable name not quoted ${variable}.
Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/f83c70cc
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/f83c70cc
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/f83c70cc
Branch: refs/heads/go1
Commit: f83c70cc5b929161ead83567a048d3f6cb9a0dd4
Parents: f8c4c27
Author: Alan Conway <ac...@redhat.com>
Authored: Mon Oct 24 21:15:55 2016 -0400
Committer: Alan Conway <ac...@redhat.com>
Committed: Mon Oct 24 21:20:11 2016 -0400
----------------------------------------------------------------------
proton-c/CMakeLists.txt | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/f83c70cc/proton-c/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/proton-c/CMakeLists.txt b/proton-c/CMakeLists.txt
index 0b4f7e1..cba043a 100644
--- a/proton-c/CMakeLists.txt
+++ b/proton-c/CMakeLists.txt
@@ -110,13 +110,13 @@ elseif (SASL_IMPL STREQUAL none)
endif ()
# Set Compiler extra flags for Solaris when using SunStudio
-IF( ${CMAKE_CXX_COMPILER_ID} STREQUAL "SunPro" )
- SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mt" )
-ENDIF()
+if(CMAKE_CXX_COMPILER_ID STREQUAL "SunPro" )
+ set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mt" )
+endif()
-IF( ${CMAKE_C_COMPILER_ID} STREQUAL "SunPro" )
- SET( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mt" )
-ENDIF()
+if(CMAKE_C_COMPILER_ID STREQUAL "SunPro" )
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mt")
+endif()
# Link in openssl if present
if (SSL_IMPL STREQUAL openssl)
@@ -250,7 +250,7 @@ if (CMAKE_COMPILER_IS_GNUCC)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden")
endif (ENABLE_HIDE_UNEXPORTED_SYMBOLS)
-elseif (${CMAKE_CXX_COMPILER_ID} STREQUAL "SunPro")
+elseif (CMAKE_CXX_COMPILER_ID STREQUAL "SunPro")
if (ENABLE_HIDE_UNEXPORTED_SYMBOLS)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -xldscope=hidden")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -xldscope=hidden")
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org