--- a/libclc.pc.in
+++ b/libclc.pc.in
@@ -1,4 +1,5 @@
-libexecdir=@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_DATADIR@/clc
+prefix=@CMAKE_INSTALL_PREFIX@
+libexecdir=${prefix}/@CMAKE_INSTALL_DATADIR@/clc
 
 Name: libclc
 Description: Library requirements of the OpenCL C programming language
