Add a CMake option to not build the tests #1624

Open
opened 2024-03-14 01:28:56 -07:00 by hedtke · 2 comments
hedtke commented 2024-03-14 01:28:56 -07:00 (Migrated from github.com)

I created a Conan package for yoga, but I have to patch out the line add_subdirectory(tests) in CMakeLists.txt because I do not want to build the tests when creating the package. A CMake option would be nice, something like option(BUILD_TESTS "Build tests" ON).

I am not allowed to contribute to yoga due to the Meta CLA, thus I closed the PR where I propose such a change.

I created a Conan package for yoga, but I have to patch out the line `add_subdirectory(tests)` in `CMakeLists.txt` because I do not want to build the tests when creating the package. A CMake option would be nice, something like `option(BUILD_TESTS "Build tests" ON)`. I am not allowed to contribute to yoga due to the Meta CLA, thus I closed the PR where I propose such a change.
NickGerleman commented 2024-03-14 11:06:37 -07:00 (Migrated from github.com)

What are build expectations of Conan? Yoga CMake structure is a bit messy, but if we don’t need bits which install Yoga headers to system, we could use https://github.com/facebook/yoga/blob/main/yoga/CMakeLists.txt directly.

What are build expectations of Conan? Yoga CMake structure is a bit messy, but if we don’t need bits which install Yoga headers to system, we could use https://github.com/facebook/yoga/blob/main/yoga/CMakeLists.txt directly.
hedtke commented 2024-03-15 03:38:57 -07:00 (Migrated from github.com)

At the moment building and packaging is done via

cmake --build --target yogacore
cmake --install

this we install the lib and the headers

At the moment building and packaging is done via ``` cmake --build --target yogacore cmake --install ``` this we install the lib and the headers
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DaddyFrosty/yoga#1624
No description provided.