Hello,
I run into a problem when use FindBISON module in CMakeLists.txt. The
BISON_TARGET will run bison command in CMAKE_CURRENT_SOURCE_DIR. The GNU Bison
has problem for ‘—defines=‘ option because it will always generate the header
file in the working directory. So,
BISON_TARGET(Parser ${CMAKE_CURRENT_SOURCE_DIR}/Parser.y
${CMAKE_CURRENT_BINARY_DIR}/Parser.bison
DEFINES_FILE ${CMAKE_CURRENT_BINARY_DIR}/Parser.h)
will not work, because ‘Parser.h’ will be generated under
CMAKE_CURRENT_SOURCE_DIR.
So I just wonder whither it is better for BISON_TARGET to use
CMAKE_CURRENT_BINARY_DIR as WORKING_DIRECTORY.
Thanks
Mingjie
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake-developers