diff --git a/host/CMakeLists.txt b/host/CMakeLists.txt index ef6eade8..5eb7b72d 100644 --- a/host/CMakeLists.txt +++ b/host/CMakeLists.txt @@ -27,6 +27,10 @@ add_compile_options( ) set(CMAKE_C_STANDARD 11) +if(WIN32) + add_compile_options("-fdebug-prefix-map=${PROJECT_TOP}/=") +endif() + add_custom_command( OUTPUT ${CMAKE_BINARY_DIR}/version.c ${CMAKE_BINARY_DIR}/include/version.h