gplugin/gplugin

d0794f596936
Parents 0275b6a0e1c3
Children 99906cd2c844
enable the unused macro for apple since it's the same as the one for gcc
--- a/CMakeLists.txt Tue Aug 05 16:02:34 2014 -0500
+++ b/CMakeLists.txt Thu Aug 14 19:59:42 2014 -0500
@@ -150,15 +150,15 @@
)
# check if we're using gcc
-if(CMAKE_COMPILER_IS_GNUCC)
+if(CMAKE_COMPILER_IS_GNUCC OR APPLE)
add_definitions(
-DGPLUGIN_UNUSED=__attribute__\(\(unused\)\)
)
-else(CMAKE_COMPILER_IS_GNUCC)
+else(CMAKE_COMPILER_IS_GNUCC OR APPLE)
add_definitions(
- -DGPLUGIN_UNUSED=""
+ -DGPLUGIN_UNUSED=
)
-endif(CMAKE_COMPILER_IS_GNUCC)
+endif(CMAKE_COMPILER_IS_GNUCC OR APPLE)
include_directories(
${CMAKE_SOURCE_DIR}