diff options
author | Yuri Victorovich <yuri@FreeBSD.org> | 2022-11-06 23:05:49 -0800 |
---|---|---|
committer | Yuri Victorovich <yuri@FreeBSD.org> | 2022-11-07 00:04:27 -0800 |
commit | 683f6ce2cb85fd474aa55a04f6f2188bc76a0c41 (patch) | |
tree | e7cd885eb9a7e402a09ab55e20bb11aa5546a535 /math/libfixmath/files/patch-CMakeLists.txt | |
parent | net/brynet: New port: Header-only cross-platform C++ TCP network library (diff) |
math/libfixmath: New port: Cross-platform fixed point math library
Diffstat (limited to 'math/libfixmath/files/patch-CMakeLists.txt')
-rw-r--r-- | math/libfixmath/files/patch-CMakeLists.txt | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/math/libfixmath/files/patch-CMakeLists.txt b/math/libfixmath/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..0647c6b3251c --- /dev/null +++ b/math/libfixmath/files/patch-CMakeLists.txt @@ -0,0 +1,28 @@ +--- CMakeLists.txt.orig 2022-09-15 10:24:31 UTC ++++ CMakeLists.txt +@@ -11,17 +11,23 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pedantic -Wextra -Werror=return-type") + + include(libfixmath/libfixmath.cmake) ++if (BUILD_TESTING) + include(tests/tests.cmake) ++endif() + + file(GLOB fixsingen-srcs fixsingen/*.c) ++if (BUILD_TESTING) + file(GLOB fixtest-srcs fixtest/*.c fixtest/*.h) ++endif() + ++if (BUILD_TESTING) + add_executable(fixtest ${fixtest-srcs}) +-target_link_libraries(fixtest PRIVATE libfixmath m) ++target_link_libraries(fixtest PRIVATE fixmath m) + target_include_directories(fixtest PRIVATE ${CMAKE_SOURCE_DIR}) ++endif() + + add_executable(fixsingen ${fixsingen-srcs}) +-target_link_libraries(fixsingen PRIVATE libfixmath m) ++target_link_libraries(fixsingen PRIVATE fixmath m) + target_include_directories(fixsingen PRIVATE ${CMAKE_SOURCE_DIR}) + + |