summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorIvan Zhakov <ivan@apache.org>2022-06-30 14:37:44 +0200
committerIvan Zhakov <ivan@apache.org>2022-06-30 14:37:44 +0200
commit0872eb6f5481b72518ba6c6ac9780dbf9d48dc92 (patch)
tree1218ed34ed90d37f723a009ca67272c47e1c1651 /CMakeLists.txt
parentbetter error message (diff)
downloadapache2-0872eb6f5481b72518ba6c6ac9780dbf9d48dc92.tar.xz
apache2-0872eb6f5481b72518ba6c6ac9780dbf9d48dc92.zip
* CMakeLists.txt: Use full path to gen_test_char.exe in CUSTOM_COMMAND.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1902366 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt3
1 files changed, 1 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 379644dc50..cfbeb8ce03 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -651,11 +651,10 @@ ENDIF()
CONFIGURE_FILE(os/win32/BaseAddr.ref ${PROJECT_BINARY_DIR}/ COPYONLY)
ADD_EXECUTABLE(gen_test_char server/gen_test_char.c)
-GET_TARGET_PROPERTY(GEN_TEST_CHAR_EXE gen_test_char LOCATION)
ADD_CUSTOM_COMMAND(
COMMENT "Generating character tables, test_char.h, for current locale"
DEPENDS gen_test_char
- COMMAND ${GEN_TEST_CHAR_EXE} > ${PROJECT_BINARY_DIR}/test_char.h
+ COMMAND $<TARGET_FILE:gen_test_char> > ${PROJECT_BINARY_DIR}/test_char.h
OUTPUT ${PROJECT_BINARY_DIR}/test_char.h
)
ADD_CUSTOM_TARGET(