You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I am using PEGTL as a submodule for my own repository and link it by using "cmake_add_subdirectroy" (which works perfectly fine). The annoying part is that this will add all of the PEGL examples & tests to my own project. Currently there is no cmake option to disable this. I'd recommend something like this: option(BUILD_TESTS "Wether or not to build PEGL test cases" TRUE),
which would build the tests if not explicitly disabled before.
The text was updated successfully, but these errors were encountered:
Yep this is exactly what i was looking. Maybe I'd prefix the options with PEGTL_ (= PEGTL_BUILD_EXAMPLES etc.), so there is no conflict with variables from other cmake projects. For example it is done like this in GLFW: http://www.glfw.org/docs/latest/build_guide.html#build_link_cmake_source
Hello,
I am using PEGTL as a submodule for my own repository and link it by using "cmake_add_subdirectroy" (which works perfectly fine). The annoying part is that this will add all of the PEGL examples & tests to my own project. Currently there is no cmake option to disable this. I'd recommend something like this:
option(BUILD_TESTS "Wether or not to build PEGL test cases" TRUE)
,which would build the tests if not explicitly disabled before.
The text was updated successfully, but these errors were encountered: