diff options
| author | Sadie Powell <sadie@witchery.services> | 2021-11-30 10:09:08 +0000 |
|---|---|---|
| committer | Sadie Powell <sadie@witchery.services> | 2025-04-02 09:53:10 +0100 |
| commit | 947ddc9e1b66e502f137790c6c623486bf0bb2c0 (patch) | |
| tree | f324a1c84188bff7786f7ba4e61079a15c330208 /src/tools | |
| parent | 43dc6f75096b63efc9df8f6e313e10f076203e93 (diff) | |
Fix building on CMake 4.
This is a partial backport from 2.1.
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/CMakeLists.txt b/src/tools/CMakeLists.txt index 3e00b981d..29421aeeb 100644 --- a/src/tools/CMakeLists.txt +++ b/src/tools/CMakeLists.txt @@ -29,7 +29,7 @@ foreach(SRC ${TOOLS_SRCS}) DESTINATION ${BIN_DIR} ) # Add the executable to the list of files for CPack to ignore - get_target_property(EXE_BINARY ${EXE} LOCATION) + set(EXE_BINARY "$<TARGET_FILE:${EXE}>") get_filename_component(EXE_BINARY ${EXE_BINARY} NAME) add_to_cpack_ignored_files("${EXE_BINARY}$" TRUE) endif(NOT SKIP) |
