1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-01 17:36:21 +03:00

Configuration - Resource generation source path fix #453

Fix header file path generation in OCCT resource macro.
Regression after reorganizing repository.
This commit is contained in:
Pasukhin Dmitry 2025-03-20 13:09:23 +00:00 committed by GitHub
parent 5647b46a34
commit 9cd174509c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -39,7 +39,7 @@ macro (OCCT_GENERATE_CONTENT_ONLY CurrentResource)
endforeach()
set (OCCT_HEADER_FILE_CONTENT "${OCCT_HEADER_FILE_CONTENT};\n\n")
# Save generated content to header file
set (HEADER_FILE "${CMAKE_SOURCE_DIR}/src/${CurrentResource_Directory}/${HEADER_FILE_NAME}")
set (HEADER_FILE "${OCCT_${CurrentResource_Directory}_FILES_LOCATION}/${HEADER_FILE_NAME}")
if (EXISTS "${HEADER_FILE}")
file (REMOVE "${HEADER_FILE}")
endif()