qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kgiu...@apache.org
Subject svn commit: r1485352 - /qpid/proton/trunk/tests/tools/apps/c/CMakeLists.txt
Date Wed, 22 May 2013 19:24:06 GMT
Author: kgiusti
Date: Wed May 22 19:24:05 2013
New Revision: 1485352

URL: http://svn.apache.org/r1485352
Log:
NO-JIRA: fix cmake windows build

Modified:
    qpid/proton/trunk/tests/tools/apps/c/CMakeLists.txt

Modified: qpid/proton/trunk/tests/tools/apps/c/CMakeLists.txt
URL: http://svn.apache.org/viewvc/qpid/proton/trunk/tests/tools/apps/c/CMakeLists.txt?rev=1485352&r1=1485351&r2=1485352&view=diff
==============================================================================
--- qpid/proton/trunk/tests/tools/apps/c/CMakeLists.txt (original)
+++ qpid/proton/trunk/tests/tools/apps/c/CMakeLists.txt Wed May 22 19:24:05 2013
@@ -23,8 +23,10 @@ CHECK_INCLUDE_FILES("inttypes.h" INTTYPE
 if (INTTYPES_AVAILABLE)
   list(APPEND PLATFORM_DEFINITIONS "USE_INTTYPES")
 else (INTTYPES_AVAILABLE)
-  # since inttypes.h provides portable printf format macros
-  set (COMPILE_WARNING_FLAGS "${COMPILE_WARNING_FLAGS} -Wno-format")
+  if (CMAKE_COMPILER_IS_GNUCC)
+    # since inttypes.h provides portable printf format macros
+    set (COMPILE_WARNING_FLAGS "${COMPILE_WARNING_FLAGS} -Wno-format")
+  endif (CMAKE_COMPILER_IS_GNUCC)
 endif (INTTYPES_AVAILABLE)
 
 add_executable(msgr-recv msgr-recv.c msgr-common.c)



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message