--- hatari/src/uae-cpu/CMakeLists.txt 2019/04/09 08:49:41 1.1.1.2 +++ hatari/src/uae-cpu/CMakeLists.txt 2019/04/09 08:58:19 1.1.1.3 @@ -32,16 +32,13 @@ else() # Rules for normal build follow add_executable(build68k build68k.c) - get_target_property(BUILD68K_EXE build68k LOCATION) add_custom_command(OUTPUT cpudefs.c - COMMAND ${BUILD68K_EXE} < ${CMAKE_CURRENT_SOURCE_DIR}/table68k >cpudefs.c + COMMAND build68k < ${CMAKE_CURRENT_SOURCE_DIR}/table68k >cpudefs.c DEPENDS table68k build68k) add_executable(gencpu gencpu.c readcpu.c cpudefs.c) - get_target_property(GENCPU_EXE gencpu LOCATION) - add_custom_command(OUTPUT cpuemu.c cpustbl.c - COMMAND ${GENCPU_EXE} DEPENDS gencpu) + add_custom_command(OUTPUT cpuemu.c cpustbl.c COMMAND gencpu DEPENDS gencpu) endif(CMAKE_CROSSCOMPILING)