From: rdb Date: Tue, 16 Jan 2018 16:04:33 +0000 (+0100) Subject: [cmake] Fix for CMake 3.0 and below (#706) X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5e14e5f65d3dd1ed471ed73fab7e3207ae04e8fb;p=platform%2Fupstream%2FlibHarfBuzzSharp.git [cmake] Fix for CMake 3.0 and below (#706) --- diff --git a/CMakeLists.txt b/CMakeLists.txt index f8391d5..9c4b0f0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -493,7 +493,7 @@ file(WRITE "${PROJECT_BINARY_DIR}/try_compile_intel_atomic_primitives.c" ") try_compile(HB_HAVE_INTEL_ATOMIC_PRIMITIVES ${PROJECT_BINARY_DIR}/try_compile_intel_atomic_primitives - SOURCES ${PROJECT_BINARY_DIR}/try_compile_intel_atomic_primitives.c) + ${PROJECT_BINARY_DIR}/try_compile_intel_atomic_primitives.c) if (HB_HAVE_INTEL_ATOMIC_PRIMITIVES) add_definitions(-DHAVE_INTEL_ATOMIC_PRIMITIVES) endif () @@ -509,7 +509,7 @@ file(WRITE "${PROJECT_BINARY_DIR}/try_compile_solaris_atomic_ops.c" ") try_compile(HB_HAVE_SOLARIS_ATOMIC_OPS ${PROJECT_BINARY_DIR}/try_compile_solaris_atomic_ops - SOURCES ${PROJECT_BINARY_DIR}/try_compile_solaris_atomic_ops.c) + ${PROJECT_BINARY_DIR}/try_compile_solaris_atomic_ops.c) if (HB_HAVE_SOLARIS_ATOMIC_OPS) add_definitions(-DHAVE_SOLARIS_ATOMIC_OPS) endif () @@ -799,4 +799,4 @@ endif () # Needs to come last so that variables defined above are passed to # subdirectories. -add_subdirectory(test) \ No newline at end of file +add_subdirectory(test)