--- a/src/bin/CMakeLists.txt
+++ b/src/bin/CMakeLists.txt
@@ -43,7 +43,7 @@
     macro(LFORTRAN_COMPILE_RUNTIME name dir)
         add_custom_command(
             OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/../runtime/${name}.mod
-            COMMAND ${CMAKE_CURRENT_BINARY_DIR}/lfortran
+            COMMAND lfortran
             ARGS --backend=cpp -c ${CMAKE_CURRENT_SOURCE_DIR}/../runtime/${dir}/${name}.f90 -o ${name}.o
             WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/../runtime
             DEPENDS lfortran ${CMAKE_CURRENT_SOURCE_DIR}/../runtime/${dir}/${name}.f90 ${ARGN}
