Skip to content

Commit 31243ba

Browse files
committed
error on existing ginkgo.hpp
1 parent f4f5004 commit 31243ba

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ __pycache__
2727
.vscode
2828

2929
### Generated header file
30-
include/config.hpp
30+
include/ginkgo/config.hpp
31+
include/ginkgo/ginkgo.hpp
3132

3233
### C++
3334
# Prerequisites

cmake/generate_ginkgo_hpp.cmake

+3
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,7 @@ function(ginkgo_generate_ginkgo_hpp)
1414
endforeach()
1515
configure_file("${Ginkgo_SOURCE_DIR}/include/ginkgo/ginkgo.hpp.in"
1616
"${Ginkgo_BINARY_DIR}/include/ginkgo/ginkgo.hpp" @ONLY)
17+
if(EXISTS "${Ginkgo_SOURCE_DIR}/include/ginkgo/ginkgo.hpp")
18+
message(FATAL_ERROR "ginkgo.hpp is auto-generated and should not be in include/ginkgo")
19+
endif()
1720
endfunction()

0 commit comments

Comments
 (0)