2010/11/19 Thomas Lehmann <[email protected]> > > Hi, > > > > I’ve found an example to use bison and flex in cmake. > > I have a static library where I want to add the generated > > sources but the dependencies are not triggered. Why? > > > > project(test) > > > > include_directories(. > > ${CMAKE_BINARY_DIR}/libs/test) > > > > add_custom_target(ScannerAndParser echo "Creating scanner.cxx and parser.cxx") > > > > add_custom_command( > > SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/scanner.l > > COMMAND flex > > ARGS -o ${CMAKE_BINARY_DIR}/libs/test/scanner.cxx > > ${CMAKE_CURRENT_SOURCE_DIR}/scanner.l > > TARGET ScannerAndParser > > DEPENDS ${CMAKE_BINARY_DIR}/libs/test/scanner.cxx > > OUTPUTS ${CMAKE_BINARY_DIR}/libs/test/scanner.cxx)
OUTPUTS (with 'S') should be OUTPUT (without 'S') I don't know the SOURCE option ? Which version of CMake do you use? -- Erk Membre de l'April - « promouvoir et défendre le logiciel libre » - http://www.april.org _______________________________________________ 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
