Fixed CMakeLists.txt files to prevent CMake 3.0.0 warnings about deprecated LOCATION target property.

Small whitespace cleanup in CMakelLists.txt.
This commit is contained in:
Georg Drenkhahn
2014-08-22 12:13:07 +02:00
parent 25a3e65a68
commit 0ba490cf80
5 changed files with 10 additions and 24 deletions

View File

@@ -6,12 +6,10 @@ foreach(example_src ${examples_SRCS})
if(EIGEN_STANDARD_LIBRARIES_TO_LINK_TO)
target_link_libraries(${example} ${EIGEN_STANDARD_LIBRARIES_TO_LINK_TO})
endif()
get_target_property(example_executable
${example} LOCATION)
add_custom_command(
TARGET ${example}
POST_BUILD
COMMAND ${example_executable}
COMMAND ${example}
ARGS >${CMAKE_CURRENT_BINARY_DIR}/${example}.out
)
add_dependencies(all_examples ${example})