Skip to content

Commit

Permalink
remove old cmake include generate header
Browse files Browse the repository at this point in the history
This should already be taken care of by target_include_dir

Contributes to CURA-8640
  • Loading branch information
jellespijker committed Apr 12, 2022
1 parent 85d20a9 commit 1dede18
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ AssureOutOfSourceBuilds()

include(CMakePackageConfigHelpers)
include(GenerateExportHeader)
generate_export_header(Savitar EXPORT_FILE_NAME src/SavitarExport.h)

option(BUILD_PYTHON "Build " ON)
option(BUILD_STATIC "Build as a static library" OFF)
Expand Down Expand Up @@ -137,13 +138,6 @@ set_target_properties(Savitar PROPERTIES
VISIBILITY_INLINES_HIDDEN 1
)

generate_export_header(Savitar
EXPORT_FILE_NAME src/SavitarExport.h
)
# This is required when building out-of-tree.
# The compiler won't find the generated header otherwise.
include_directories(${CMAKE_BINARY_DIR}/src)

install(TARGETS Savitar
EXPORT Savitar-targets
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
Expand Down

0 comments on commit 1dede18

Please sign in to comment.