diff --git a/cmake/JSONParser.cmake b/cmake/JSONParser.cmake index 747cd630c5..7806252a58 100644 --- a/cmake/JSONParser.cmake +++ b/cmake/JSONParser.cmake @@ -34,8 +34,6 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -cmake_minimum_required(VERSION 2.8) - if (DEFINED JSonParserGuard) return() endif() diff --git a/cmake/http-parser.cmake b/cmake/http-parser.cmake index 83f25798a0..12fa939d21 100644 --- a/cmake/http-parser.cmake +++ b/cmake/http-parser.cmake @@ -12,8 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -cmake_minimum_required(VERSION 2.8) - if("${TARGET_OS}" MATCHES "NUTTX|TIZENRT") set(HTTPPARSER_NUTTX_ARG -DNUTTX_HOME=${TARGET_SYSTEMROOT}) endif() diff --git a/cmake/iotjs.cmake b/cmake/iotjs.cmake index 2216f12e4c..2a9d1d33da 100644 --- a/cmake/iotjs.cmake +++ b/cmake/iotjs.cmake @@ -12,8 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -cmake_minimum_required(VERSION 2.8) - if(NOT DEFINED PYTHON) set(PYTHON "python") endif() diff --git a/cmake/jerry.cmake b/cmake/jerry.cmake index ca4809b13a..17f2aa3e61 100644 --- a/cmake/jerry.cmake +++ b/cmake/jerry.cmake @@ -12,8 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -cmake_minimum_required(VERSION 2.8) - # Host jerry for snapshot generation set(DEPS_HOST_JERRY deps/jerry-host) ExternalProject_Add(hostjerry diff --git a/cmake/libtuv.cmake b/cmake/libtuv.cmake index 1c4ab4c9f3..490c81a64a 100644 --- a/cmake/libtuv.cmake +++ b/cmake/libtuv.cmake @@ -12,8 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -cmake_minimum_required(VERSION 2.8) - # Configure external libtuv set(DEPS_TUV deps/libtuv) set(DEPS_TUV_SRC ${ROOT_DIR}/${DEPS_TUV}) @@ -58,13 +56,14 @@ set(TUV_LIBS tuv) if("${TARGET_OS}" STREQUAL "MOCK" OR "${TARGET_OS}" STREQUAL "LINUX") - list(APPEND TUV_LIBS pthread) + target_link_libraries(tuv INTERFACE pthread) elseif("${TARGET_OS}" STREQUAL "WINDOWS") - list(APPEND TUV_LIBS - ws2_32.lib - UserEnv.lib - advapi32.lib - iphlpapi.lib - psapi.lib - shell32.lib) + target_link_libraries(tuv INTERFACE + ws2_32.lib + UserEnv.lib + advapi32.lib + iphlpapi.lib + psapi.lib + shell32.lib + ) endif() diff --git a/cmake/mbedtls.cmake b/cmake/mbedtls.cmake index 0a8e841e89..67aef46a58 100644 --- a/cmake/mbedtls.cmake +++ b/cmake/mbedtls.cmake @@ -12,8 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -cmake_minimum_required(VERSION 2.8) - set(MODULE_NAME "tls") if ("${TARGET_OS}" STREQUAL "TIZENRT")