diff --git a/CMakeLists.txt b/CMakeLists.txt
index 134912e6f696fcd4a244435c0d691dc190a61184..81c51f30ca7ff1de21d0a245f502daf6ffd6f83f 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -97,13 +97,15 @@ if( SCALFMM_USE_BLAS )
 	INCLUDE(FindBLAS)
 	INCLUDE(FindLAPACK)
   endif()
-SET(SCALFMM_LIBRARIES "${SCALFMM_LIBRARIES} ${BLAS_LIBRARIES} ${LAPACK_LIBRARIES}")
+  #SET(SCALFMM_LIBRARIES "${SCALFMM_LIBRARIES} ${BLAS_LIBRARIES} ${LAPACK_LIBRARIES}")
+  SET(SCALFMM_LIBRARIES ${SCALFMM_LIBRARIES} ${BLAS_LIBRARIES} ${LAPACK_LIBRARIES})
+  #MESSAGE(${SCALFMM_LIBRARIES})
 endif()
 
 # Compile option
 ADD_DEFINITIONS(-Wall -Wshadow -Wpointer-arith -Wcast-qual -Wconversion)
 
-CONFIGURE_FILE( ${CMAKE_SOURCE_DIR}/Src/ScalFmmConfig.h.cmake 
+CONFIGURE_FILE( ${CMAKE_CURRENT_SOURCE_DIR}/Src/ScalFmmConfig.h.cmake 
 		${CMAKE_BINARY_DIR}/Src/ScalFmmConfig.h  )
 
 # Use Mem stats
diff --git a/Src/Utils/FGlobalPeriodic.hpp b/Src/Utils/FGlobalPeriodic.hpp
index 4c96433ef44df433e38ed0ff97f5cc9f018f775d..2cf16d852e616053bf62488fbc32d11a6ec593ed 100755
--- a/Src/Utils/FGlobalPeriodic.hpp
+++ b/Src/Utils/FGlobalPeriodic.hpp
@@ -37,7 +37,7 @@ enum PeriodicCondition {
     AllDirs     = (DirX | DirY | DirZ)
 };
 
-bool TestPeriodicCondition(const int conditions, const PeriodicCondition testConditions) {
+inline bool TestPeriodicCondition(const int conditions, const PeriodicCondition testConditions) {
     return (conditions & testConditions) == testConditions;
 }