Skip to content

Commit

Permalink
Silence policy CMP0087 warning
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Haschke <[email protected]>
  • Loading branch information
rhaschke committed Jan 6, 2022
1 parent 321105d commit fe6b3a3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ament_cmake_python/cmake/ament_python_install_package.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ setup(
DESTINATION "${ARG_DESTINATION}/${egg_install_name}.egg-info"
)

if(POLICY CMP0087)
# Allow generator expressions in install(CODE...)
cmake_policy(SET CMP0087 NEW)
endif()

# generate/install entry-point console scripts
get_filename_component(ABS_SCRIPTS_DESTINATION "${ARG_SCRIPTS_DESTINATION}" ABSOLUTE BASE_DIR "${CMAKE_INSTALL_PREFIX}")
install(CODE "execute_process(COMMAND ${python_interpreter} setup.py install_scripts --install-dir \"${ABS_SCRIPTS_DESTINATION}\"
Expand Down

0 comments on commit fe6b3a3

Please sign in to comment.