Permalink
Browse files

Fix deprecated CMake TARGET/LOCATION property

  • Loading branch information...
jlblancoc committed Jun 11, 2017
1 parent c30d211 commit 29c25c1da555693ec5876e662744a979304c30b7
Showing with 2 additions and 5 deletions.
  1. +0 −3 CMakeLists.txt
  2. +1 −1 doc/CMakeLists.txt
  3. +1 −1 tests/CMakeLists.txt
View
@@ -29,9 +29,6 @@ if(COMMAND cmake_policy)
if(POLICY CMP0053)
cmake_policy(SET CMP0053 OLD) # Simplify variable reference and escape sequence evaluation.
endif()
if(POLICY CMP0026)
cmake_policy(SET CMP0026 OLD) # Allow using the LOCATION target property.
endif()
if(POLICY CMP0037)
cmake_policy(SET CMP0037 OLD) # Allow defining target "test"
endif()
View
@@ -29,7 +29,7 @@ FIND_PACKAGE(Doxygen)
# documentation_performance_html
# --------------------------------
if(TARGET mrpt-perfdata2html)
GET_TARGET_PROPERTY(PERF2HTML_GENERATED_EXE mrpt-perfdata2html LOCATION)
SET(PERF2HTML_GENERATED_EXE "$<TARGET_FILE:mrpt-perfdata2html>")
add_custom_target(documentation_performance_html
COMMAND ${PERF2HTML_GENERATED_EXE} "${MRPT_SOURCE_DIR}/doc/perf-data/"
WORKING_DIRECTORY ${MRPT_SOURCE_DIR}/
View
@@ -91,7 +91,7 @@ ENDIF ()
# Run it:
GET_TARGET_PROPERTY(GENERATED_EXE test_${_TSTLIB} LOCATION)
SET(GENERATED_EXE "$<TARGET_FILE:test_${_TSTLIB}>")
ADD_CUSTOM_TARGET(run_tests_${_TSTLIB} COMMAND "${GENERATED_EXE}")
ADD_DEPENDENCIES(run_tests_${_TSTLIB} test_${_TSTLIB})
ADD_DEPENDENCIES(test run_tests_${_TSTLIB})

0 comments on commit 29c25c1

Please sign in to comment.