diff --git a/CMakeLists.txt b/CMakeLists.txt
index b0d102d7705f83f0ed74f5e14afab802428b6b2a..4dbd384aae8f2fc1b82f3700f7da8a629a659ce3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -43,11 +43,11 @@ add_custom_target(spm_headers_tgt
   DEPENDS ${spm_headers} )
 
 set_source_files_properties(
-  spm/spm.c
+  spm.c
   PROPERTIES DEPENDS spm_headers_tgt
   )
 
 set(PASTIX_LIB_SRCS
   ${PASTIX_LIB_SRCS}
   ${spm_sources}
-  )
\ No newline at end of file
+  )