diff options
Diffstat (limited to 'stubs')
| -rw-r--r-- | stubs/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/stubs/CMakeLists.txt b/stubs/CMakeLists.txt index d877bcd0..9756f91a 100644 --- a/stubs/CMakeLists.txt +++ b/stubs/CMakeLists.txt @@ -5,6 +5,9 @@ find_package(Python3 COMPONENTS Interpreter REQUIRED) file(REAL_PATH "${PROJECT_SOURCE_DIR}/../" ABSOLUTE_API_PATH) +# Remove long path prefix because it makes cl.exe very angry +string(REGEX REPLACE "^//\\?/" "" ABSOLUTE_API_PATH "${ABSOLUTE_API_PATH}") + # Generate stubs.cpp with implementations of all the BNAPI functions add_custom_command( OUTPUT ${PROJECT_BINARY_DIR}/stubs.cpp |
