From 2ab7135063301ee8b165b30f275522c918a04ee7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Thu, 16 May 2019 00:47:12 +0200 Subject: cmake: Removed useless usage of `get_target_property( BIN2C_EXE bin2c LOCATION)` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This resolves the CMake warning on CMP0026. Signed-off-by: Slávek Banko --- ksokoban/levels/CMakeLists.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ksokoban/levels') diff --git a/ksokoban/levels/CMakeLists.txt b/ksokoban/levels/CMakeLists.txt index 1847d3ec..b11a6a7a 100644 --- a/ksokoban/levels/CMakeLists.txt +++ b/ksokoban/levels/CMakeLists.txt @@ -9,11 +9,9 @@ # ################################################## -get_target_property( BIN2C_EXE bin2c LOCATION) - add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/data.c COMMAND - "${BIN2C_EXE}" \"\" "${CMAKE_CURRENT_SOURCE_DIR}/level.data" + bin2c \"\" "${CMAKE_CURRENT_SOURCE_DIR}/level.data" DEPENDS bin2c ${CMAKE_CURRENT_SOURCE_DIR}/level.data WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ) -- cgit v1.2.1