Put generated StaConfig.hh into build artifacts. (#230)
Before, the cmake configure_file() for the StaConfig.hh header, that make only sense for the particular cmake configuration as it contains specific defines for that build configuration, ended up in the original source tree. With this fix, it is a build artifact inside build/. Tested, that the final `make install` properly copies the StaConfig.hh to the correct location. Signed-off-by: Henner Zeller <hzeller@google.com>
This commit is contained in:
parent
b87ec3febf
commit
16b6bbb21c
|
|
@ -15,8 +15,6 @@ cmake-build-debug
|
|||
build
|
||||
pvt
|
||||
|
||||
include/sta/StaConfig.hh
|
||||
|
||||
app/sta
|
||||
app/libOpenSTA.*
|
||||
app/sta.exe
|
||||
|
|
|
|||
|
|
@ -389,7 +389,7 @@ message(STATUS "SSTA: ${SSTA}")
|
|||
|
||||
# configure a header file to pass some of the CMake settings
|
||||
configure_file(${STA_HOME}/util/StaConfig.hh.cmake
|
||||
${STA_HOME}/include/sta/StaConfig.hh
|
||||
${CMAKE_CURRENT_BINARY_DIR}/include/sta/StaConfig.hh
|
||||
)
|
||||
|
||||
###########################################################
|
||||
|
|
@ -464,6 +464,7 @@ target_include_directories(sta_swig
|
|||
PRIVATE
|
||||
${STA_HOME}
|
||||
${TCL_INCLUDE_PATH}
|
||||
${CMAKE_CURRENT_BINARY_DIR}/include/sta
|
||||
)
|
||||
|
||||
###########################################################
|
||||
|
|
@ -515,6 +516,7 @@ target_include_directories(OpenSTA
|
|||
include
|
||||
${TCL_INCLUDE_PATH}
|
||||
${FLEX_INCLUDE_DIRS}
|
||||
${CMAKE_CURRENT_BINARY_DIR}/include/sta
|
||||
|
||||
PRIVATE
|
||||
include/sta
|
||||
|
|
@ -582,6 +584,7 @@ install(TARGETS OpenSTA DESTINATION lib)
|
|||
|
||||
# include
|
||||
install(DIRECTORY include/sta DESTINATION include)
|
||||
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/include/sta DESTINATION include)
|
||||
|
||||
################################################################
|
||||
|
||||
|
|
@ -589,6 +592,7 @@ add_custom_target(sta_tags etags -o TAGS
|
|||
${STA_SOURCE}
|
||||
*/*.hh
|
||||
include/sta/*.hh
|
||||
${CMAKE_CURRENT_BINARY_DIR}/include/sta/*.hh
|
||||
${SWIG_FILES}
|
||||
${STA_TCL_FILES}
|
||||
${SWIG_TCL_FILES}
|
||||
|
|
|
|||
Loading…
Reference in New Issue