diff --git a/.gitignore b/.gitignore index dad74e7a..da152e4f 100644 --- a/.gitignore +++ b/.gitignore @@ -99,3 +99,18 @@ libevent_openssl.pc /test/test-changelist /test/test-fdleak + +# Files generated by cmake +/CMakeCache.txt +/CMakeFiles/ +/CTestTestfile.cmake +/DartConfiguration.tcl +/LibeventConfig.cmake +/LibeventConfigVersion.cmake +/LibeventTargets.cmake +/bin/ +/cmake_install.cmake +/include/evconfig-private.h +/lib/ +/tmp/ +/verify_tests.sh \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt index 2602a6d3..71d96ec3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -119,6 +119,10 @@ endif() if (APPLE) # Get rid of deprecated warnings for OpenSSL on OSX 10.7 and greater. set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-error=deprecated-declarations") + # Get rid of "clang: warning: argument unused during compilation: -I etc + if ("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Qunused-arguments") + endif() endif() # Winsock.