Skip to content

Commit db1b0b4

Browse files
committed
placing gemerated source file into build folder
1 parent 8186b2f commit db1b0b4

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
build/
2-
src/spvrc.cpp
32
.vscode/

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ function(spvrc_create_source_file)
9797
endfunction()
9898

9999
# create source file dynamically
100-
set(SPVRC_SRC "${CMAKE_CURRENT_SOURCE_DIR}/src/spvrc.cpp")
100+
set(SPVRC_SRC "${CMAKE_CURRENT_BINARY_DIR}/spvrc.cpp")
101101
file(WRITE "${SPVRC_SRC}"
102102
"#include <string_view>
103103
#include <cstdint>

0 commit comments

Comments
 (0)