Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GCOVR HTML target cannot create directory if base directory is given as an argument #80

Open
cngzhnp opened this issue Apr 4, 2023 · 0 comments

Comments

@cngzhnp
Copy link

cngzhnp commented Apr 4, 2023

In line 541,

The directory path was defined over PROJECT_BINARY_DIR variable but it must be calculated over BASEDIR variable because all base directory paths are assigned to this variable eventually.

Wrong approach:

# Create folder
    set(GCOVR_HTML_FOLDER_CMD
        ${CMAKE_COMMAND} -E make_directory ${PROJECT_BINARY_DIR}/${Coverage_NAME}
    )

Correct approach:

# Create folder
    set(GCOVR_HTML_FOLDER_CMD
        ${CMAKE_COMMAND} -E make_directory ${BASEDIR}/${Coverage_NAME}
    )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant