Skip to content

Commit 128bacc

Browse files
committed
Support older CMake
add_compile_definitions() is CMake 3.12+ only.
1 parent 25ca2d0 commit 128bacc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bindings/ruby/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ set_property(SOURCE openshot.i PROPERTY CPLUSPLUS ON)
7373
set_property(SOURCE openshot.i PROPERTY SWIG_MODULE_NAME openshot)
7474

7575
### Unbreak std::isfinite()
76-
add_compile_definitions(HAVE_ISFINITE=1)
76+
add_definitions(-DHAVE_ISFINITE=1)
7777

7878
### Suppress a ton of warnings in the generated SWIG C++ code
7979
set(SWIG_CXX_FLAGS "-Wno-unused-variable -Wno-unused-function \

0 commit comments

Comments
 (0)