Permalink
Browse files

Dependancy on internal library fixed

  • Loading branch information...
1 parent 789d68b commit 34cbefa6cf1c0f2f3ff6bd8699996e8fd48880f7 @kuzmas kuzmas committed Oct 16, 2012
Showing with 5 additions and 9 deletions.
  1. +0 −9 razorqt-panel/CMakeLists.txt
  2. +5 −0 razorqt-panel/plugin-sysstat/CMakeLists.txt
@@ -185,17 +185,8 @@ if (VOLUME_PLUGIN)
endif (VOLUME_PLUGIN)
if (SYSSTAT_PLUGIN)
- FIND_LIBRARY(SYSSTAT_LIB sysstat)
-
- if ( NOT(${SYSSTAT_LIB} MATCHES "NOTFOUND" ))
set(ENABLED_PLUGINS ${ENABLED_PLUGINS} "SysStat")
add_subdirectory(plugin-sysstat)
- else ()
- message(STATUS "")
- message(STATUS "SysStat plugin requires libsysstat")
- message(STATUS "")
- endif ( NOT(${SYSSTAT_LIB} MATCHES "NOTFOUND" ))
-
endif (SYSSTAT_PLUGIN)
message(STATUS "**************** The following plugins will be built ****************")
@@ -31,3 +31,8 @@ LINK_LIBRARIES(${PLUGIN} ${SYSSTAT_LIB})
include ("../BuildPlugin.cmake")
BUILD_RAZOR_PLUGIN(${PLUGIN})
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
+
+set(panelsysstat_LIBRARIES
+ sysstat
+)
+target_link_libraries(${PLUGIN} ${panelsysstat_LIBRARIES})

0 comments on commit 34cbefa

Please sign in to comment.