Hi,
If the project name has a symbols "-" or "+" the $<TARGET_FILE:tgt> in the
add_custom_command() return Error: "Error evaluating generator expression"
For example:
SET ( PROJECT_NAME "00010-Liquid+Gas_as_capture " )
set ( SRCS_MAIN_CPT main.c )
add_executable ( ${ PROJECT_NAME } ${SRCS_MAIN_CPT} )
add_custom_command ( TARGET ${ PROJECT_NAME } POST_BUILD
COMMAND "$<TARGET_FILE:${
PROJECT_NAME }>"
ARGS "$<TARGET_FILE_DIR:${
PROJECT_NAME }>/110.cnf"
COMMENT "Running cpt.exe..."
)
When I run the CMake I received the following error:
"CMake Error at problems.rt.Cmake:114 (add_custom_command):
Error evaluating generator expression:
$<TARGET_FILE:00010-Liquid+Gas_as_capture>
Expression syntax not recognized."
Is this a bug or some syntax limitation?
Regards,
Alexey
--
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake