VEGO-Engine / Engine

2 stars 0 forks source link

Error on copying compile commands when using engine as submodule #45

Open Nanogamer7 opened 5 months ago

Nanogamer7 commented 5 months ago

When using the engine as a submodule, the following code causes an error:

# link/copy compile commands to root dir
file(CREATE_LINK
    ${PROJECT_BINARY_DIR}/compile_commands.json
    ${PROJECT_SOURCE_DIR}/compile_commands.json
    COPY_ON_ERROR SYMBOLIC
)

This appears to be due to not generating the file when used as a submodule. Tested on windows.