Skip to content

Commit

Permalink
Fix compatibility with CMake 2.8.11
Browse files Browse the repository at this point in the history
  • Loading branch information
traversaro committed Nov 11, 2015
1 parent c335d5a commit eeec5d2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,10 @@ else (build_errors)
DESTINATION ${CMAKE_CONFIG_INSTALL_DIR} COMPONENT cmake)

# Create *-targets.cmake file for build directory
export(EXPORT ${PROJECT_EXPORT_NAME}
# TODO: keep this instruction until we depend on CMake 3
# then change the first line from TARGETS ...
# to EXPORT ... to match the format used in install(EXPORT
export(TARGETS ${PROJECT_LIBRARY_TARGET_NAME}
FILE ${CMAKE_BINARY_DIR}/${cmake_targets_file})

# Install *-targets.cmake file
Expand Down

0 comments on commit eeec5d2

Please sign in to comment.