Skip to content

Commit fe6b3a3

Browse files
committed
Silence policy CMP0087 warning
Signed-off-by: Robert Haschke <[email protected]>
1 parent 321105d commit fe6b3a3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ament_cmake_python/cmake/ament_python_install_package.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,11 @@ setup(
160160
DESTINATION "${ARG_DESTINATION}/${egg_install_name}.egg-info"
161161
)
162162

163+
if(POLICY CMP0087)
164+
# Allow generator expressions in install(CODE...)
165+
cmake_policy(SET CMP0087 NEW)
166+
endif()
167+
163168
# generate/install entry-point console scripts
164169
get_filename_component(ABS_SCRIPTS_DESTINATION "${ARG_SCRIPTS_DESTINATION}" ABSOLUTE BASE_DIR "${CMAKE_INSTALL_PREFIX}")
165170
install(CODE "execute_process(COMMAND ${python_interpreter} setup.py install_scripts --install-dir \"${ABS_SCRIPTS_DESTINATION}\"

0 commit comments

Comments
 (0)