Fix problem with RPM install
[ric-plt/lib/rmr.git] / src / support / CMakeLists.txt
index 0147234..f3124f5 100644 (file)
@@ -19,7 +19,8 @@
 
 # build support tools and setup for their install
 add_executable( health_ck health_ck.c )
-target_link_libraries( health_ck rmr_si_shared;pthread;m )
+add_dependencies( health_ck rmr_si_static )
+target_link_libraries( health_ck rmr_si_static;pthread;m )
 
 include_directories( ${CMAKE_SOURCE_DIR}/src/rmr/common/include )
 
@@ -28,7 +29,7 @@ include_directories( ${CMAKE_SOURCE_DIR}/src/rmr/common/include )
 if( NOT DEV_PKG )
        install(
        TARGETS health_ck
-       DESTINATION ${install_root}/bin
+       DESTINATION bin
        )
 endif()