Skip to content

Commit 5b98a7f

Browse files
committed
Do not pass long paths for windows stub generation
1 parent 24ec8c9 commit 5b98a7f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

stubs/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ find_package(Python3 COMPONENTS Interpreter REQUIRED)
55

66
file(REAL_PATH "${PROJECT_SOURCE_DIR}/../" ABSOLUTE_API_PATH)
77

8+
# Remove long path prefix because it makes cl.exe very angry
9+
string(REGEX REPLACE "^//\\?/" "" ABSOLUTE_API_PATH "${ABSOLUTE_API_PATH}")
10+
811
# Generate stubs.cpp with implementations of all the BNAPI functions
912
add_custom_command(
1013
OUTPUT ${PROJECT_BINARY_DIR}/stubs.cpp

0 commit comments

Comments
 (0)