summaryrefslogtreecommitdiffstats
path: root/vhdlparser/CMakeLists.txt
diff options
context:
space:
mode:
authorTon van den Heuvel <tonvandenheuvel@gmail.com>2019-05-06 13:17:28 (GMT)
committerTon van den Heuvel <tonvandenheuvel@gmail.com>2019-05-06 13:19:30 (GMT)
commit058e1a54ee5e8bd8a60c85af5ff1df68d87da3da (patch)
treee3e992b150b010578b84a802dad6a2ae0edff2a2 /vhdlparser/CMakeLists.txt
parentc637dede9ec30c2e35f19636edc0b3fd424b45e5 (diff)
downloadDoxygen-058e1a54ee5e8bd8a60c85af5ff1df68d87da3da.zip
Doxygen-058e1a54ee5e8bd8a60c85af5ff1df68d87da3da.tar.gz
Doxygen-058e1a54ee5e8bd8a60c85af5ff1df68d87da3da.tar.bz2
Fix #6906
Generate configvalues.h only as a dependency for the VHDL parser. Fixes a problem in combination with Ninja v1.9.0 because of duplicate rules for generating configvalues.h.
Diffstat (limited to 'vhdlparser/CMakeLists.txt')
-rw-r--r--vhdlparser/CMakeLists.txt12
1 files changed, 3 insertions, 9 deletions
diff --git a/vhdlparser/CMakeLists.txt b/vhdlparser/CMakeLists.txt
index 71e97df..f89008c 100644
--- a/vhdlparser/CMakeLists.txt
+++ b/vhdlparser/CMakeLists.txt
@@ -1,14 +1,5 @@
-# configvalues.h
-add_custom_command(
- COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/src/configgen.py -maph ${CMAKE_SOURCE_DIR}/src/config.xml > ${GENERATED_SRC}/configvalues.h
- DEPENDS ${CMAKE_SOURCE_DIR}/src/config.xml ${CMAKE_SOURCE_DIR}/src/configgen.py
- OUTPUT ${GENERATED_SRC}/configvalues.h
-)
-set_source_files_properties(${GENERATED_SRC}/configvalues.h PROPERTIES GENERATED 1)
-
include_directories(${CMAKE_SOURCE_DIR}/src ${CMAKE_SOURCE_DIR}/qtools ${GENERATED_SRC})
add_library(vhdlparser STATIC
-${GENERATED_SRC}/configvalues.h
CharStream.cc
ParseException.cc
Token.cc
@@ -17,3 +8,6 @@ VhdlParser.cc
VhdlParserTokenManager.cc
VhdlParserIF.cpp
)
+add_dependencies(vhdlparser
+ generate_configvalues_header
+)