Skip to content

Commit

Permalink
Install flatc as requested (#5180)
Browse files Browse the repository at this point in the history
If FLATBUFFERS_BUILD_FLATC and FLATBUFFERS_INSTALL are set, flatc should
be installed regardless of the configuration.
  • Loading branch information
aleixpol authored and aardappel committed Feb 14, 2019
1 parent 224f752 commit 6980818
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions CMakeLists.txt
Expand Up @@ -393,15 +393,13 @@ if(FLATBUFFERS_INSTALL)
install(
TARGETS flatc EXPORT FlatcTargets
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
CONFIGURATIONS Release
)

install(
EXPORT FlatcTargets
FILE FlatcTargets.cmake
NAMESPACE flatbuffers::
DESTINATION ${FB_CMAKE_DIR}
CONFIGURATIONS Release
)
endif()

Expand Down

0 comments on commit 6980818

Please sign in to comment.