diff --git a/demos/CMakeLists.txt b/demos/CMakeLists.txt
index e8896eccf78f6f4aef3138b1c6914646c788617c..4c57e21c724478a56852c13e498ee655ac4a84f8 100644
--- a/demos/CMakeLists.txt
+++ b/demos/CMakeLists.txt
@@ -1,70 +1,72 @@
 
 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fext-numeric-literals")  # necessary for files using boost 
 
-FIND_PACKAGE(pinocchio REQUIRED)
-FIND_PACKAGE(multicontact-api REQUIRED)
+FIND_PACKAGE(pinocchio QUIET)
+FIND_PACKAGE(multicontact-api QUIET)
 
-# SYSTEM disables warnings from library headers
-include_directories(
-    SYSTEM ${PINOCCHIO_INCLUDE_DIRS}
-)
-
-add_library(mcapi_utils mcapi_utils.cpp)
-
-# add_executable(mcapi_povcdl_estimation mcapi_povcdl_estimation.cpp)
-# target_link_libraries(mcapi_povcdl_estimation
-#     mcapi_utils
-#     ${wolfcore_LIBRARIES}
-#     ${wolfimu_LIBRARIES}
-#     ${PLUGIN_NAME}
-#     ${multicontact-api_LIBRARIES}
-#     ${pinocchio_LIBRARIES}
-# )
-# target_compile_definitions(mcapi_povcdl_estimation PRIVATE ${PINOCCHIO_CFLAGS_OTHER})
-
-
-# add_executable(mcapi_pov_estimation mcapi_pov_estimation.cpp)
-# target_link_libraries(mcapi_pov_estimation
-#     mcapi_utils
-#     ${wolfcore_LIBRARIES}
-#     ${wolfimu_LIBRARIES}
-#     ${PLUGIN_NAME}
-#     ${multicontact-api_LIBRARIES}
-#     ${pinocchio_LIBRARIES}
-# )
-# target_compile_definitions(mcapi_pov_estimation PRIVATE ${PINOCCHIO_CFLAGS_OTHER})
-
-add_executable(solo_real_povcdl_estimation solo_real_povcdl_estimation.cpp)
-target_link_libraries(solo_real_povcdl_estimation 
-    mcapi_utils
-    ${wolfcore_LIBRARIES}
-    ${wolfimu_LIBRARIES}
-    ${PLUGIN_NAME}
-    ${pinocchio_LIBRARIES}    
-    /usr/local/lib/libcnpy.so
-    z
-)
-
-add_executable(solo_real_pov_estimation solo_real_pov_estimation.cpp)
-target_link_libraries(solo_real_pov_estimation 
-    mcapi_utils
-    ${wolfcore_LIBRARIES}
-    ${wolfimu_LIBRARIES}
-    ${PLUGIN_NAME}
-    ${pinocchio_LIBRARIES}    
-    /usr/local/lib/libcnpy.so
-    z
-)
-
-add_executable(solo_mocap_imu solo_mocap_imu.cpp)
-target_link_libraries(solo_mocap_imu 
-    ${wolfcore_LIBRARIES}
-    ${wolfimu_LIBRARIES}
-    ${PLUGIN_NAME}
-    ${pinocchio_LIBRARIES}    
-    /usr/local/lib/libcnpy.so
-    z
-)
+if (pinocchio_FOUND)
+	# SYSTEM disables warnings from library headers
+	include_directories(
+	    SYSTEM ${PINOCCHIO_INCLUDE_DIRS}
+	)
+	
+	add_library(mcapi_utils mcapi_utils.cpp)
+	
+	# add_executable(mcapi_povcdl_estimation mcapi_povcdl_estimation.cpp)
+	# target_link_libraries(mcapi_povcdl_estimation
+	#     mcapi_utils
+	#     ${wolfcore_LIBRARIES}
+	#     ${wolfimu_LIBRARIES}
+	#     ${PLUGIN_NAME}
+	#     ${multicontact-api_LIBRARIES}
+	#     ${pinocchio_LIBRARIES}
+	# )
+	# target_compile_definitions(mcapi_povcdl_estimation PRIVATE ${PINOCCHIO_CFLAGS_OTHER})
+	
+	
+	# add_executable(mcapi_pov_estimation mcapi_pov_estimation.cpp)
+	# target_link_libraries(mcapi_pov_estimation
+	#     mcapi_utils
+	#     ${wolfcore_LIBRARIES}
+	#     ${wolfimu_LIBRARIES}
+	#     ${PLUGIN_NAME}
+	#     ${multicontact-api_LIBRARIES}
+	#     ${pinocchio_LIBRARIES}
+	# )
+	# target_compile_definitions(mcapi_pov_estimation PRIVATE ${PINOCCHIO_CFLAGS_OTHER})
+	
+	add_executable(solo_real_povcdl_estimation solo_real_povcdl_estimation.cpp)
+	target_link_libraries(solo_real_povcdl_estimation 
+	    mcapi_utils
+	    ${wolfcore_LIBRARIES}
+	    ${wolfimu_LIBRARIES}
+	    ${PLUGIN_NAME}
+	    ${pinocchio_LIBRARIES}    
+	    /usr/local/lib/libcnpy.so
+	    z
+	)
+	
+	add_executable(solo_real_pov_estimation solo_real_pov_estimation.cpp)
+	target_link_libraries(solo_real_pov_estimation 
+	    mcapi_utils
+	    ${wolfcore_LIBRARIES}
+	    ${wolfimu_LIBRARIES}
+	    ${PLUGIN_NAME}
+	    ${pinocchio_LIBRARIES}    
+	    /usr/local/lib/libcnpy.so
+	    z
+	)
+	
+	add_executable(solo_mocap_imu solo_mocap_imu.cpp)
+	target_link_libraries(solo_mocap_imu 
+	    ${wolfcore_LIBRARIES}
+	    ${wolfimu_LIBRARIES}
+	    ${PLUGIN_NAME}
+	    ${pinocchio_LIBRARIES}    
+	    /usr/local/lib/libcnpy.so
+	    z
+	)
+endif()
 
 # add_executable(test_cnpy test_cnpy.cpp)
 # target_link_libraries(test_cnpy