Skip to content

Commit fb3b2a8

Browse files
committed
Bump the minimal cmake version to 3.9
Fixes building with cmake 3.9 IoT.js-DCO-1.0-Signed-off-by: Yonggang Luo [email protected]
1 parent 7fdafb0 commit fb3b2a8

File tree

7 files changed

+16
-15
lines changed

7 files changed

+16
-15
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
cmake_minimum_required(VERSION 2.8)
15+
cmake_minimum_required(VERSION 3.9)
1616
include(CheckCCompilerFlag)
1717

1818
project(IOTJS C)

cmake/JSONParser.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3535
# SOFTWARE.
3636

37-
cmake_minimum_required(VERSION 2.8)
37+
cmake_minimum_required(VERSION 3.9)
3838

3939
if (DEFINED JSonParserGuard)
4040
return()

cmake/http-parser.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
cmake_minimum_required(VERSION 2.8)
15+
cmake_minimum_required(VERSION 3.9)
1616

1717
if("${TARGET_OS}" MATCHES "NUTTX|TIZENRT")
1818
set(HTTPPARSER_NUTTX_ARG -DNUTTX_HOME=${TARGET_SYSTEMROOT})

cmake/iotjs.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
cmake_minimum_required(VERSION 2.8)
15+
cmake_minimum_required(VERSION 3.9)
1616

1717
if(NOT DEFINED PYTHON)
1818
set(PYTHON "python")

cmake/jerry.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
cmake_minimum_required(VERSION 2.8)
15+
cmake_minimum_required(VERSION 3.9)
1616

1717
# Host jerry for snapshot generation
1818
set(DEPS_HOST_JERRY deps/jerry-host)

cmake/libtuv.cmake

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
cmake_minimum_required(VERSION 2.8)
15+
cmake_minimum_required(VERSION 3.9)
1616

1717
# Configure external libtuv
1818
set(DEPS_TUV deps/libtuv)
@@ -58,13 +58,14 @@ set(TUV_LIBS tuv)
5858

5959
if("${TARGET_OS}" STREQUAL "MOCK" OR
6060
"${TARGET_OS}" STREQUAL "LINUX")
61-
list(APPEND TUV_LIBS pthread)
61+
target_link_libraries(tuv INTERFACE pthread)
6262
elseif("${TARGET_OS}" STREQUAL "WINDOWS")
63-
list(APPEND TUV_LIBS
64-
ws2_32.lib
65-
UserEnv.lib
66-
advapi32.lib
67-
iphlpapi.lib
68-
psapi.lib
69-
shell32.lib)
63+
target_link_libraries(tuv INTERFACE
64+
ws2_32.lib
65+
UserEnv.lib
66+
advapi32.lib
67+
iphlpapi.lib
68+
psapi.lib
69+
shell32.lib
70+
)
7071
endif()

cmake/mbedtls.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
cmake_minimum_required(VERSION 2.8)
15+
cmake_minimum_required(VERSION 3.9)
1616

1717
set(MODULE_NAME "tls")
1818

0 commit comments

Comments
 (0)