Skip to content

Commit

Permalink
Merge pull request #7890 from Montellese/cmake_fix_win32
Browse files Browse the repository at this point in the history
[win32] fix minimum required CMake version for generator expressions
  • Loading branch information
Montellese committed Aug 26, 2015
2 parents ea4cda2 + cb8c00c commit dab498e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion project/cmake/addons/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
project(kodi-addons)

cmake_minimum_required(VERSION 2.8)
if(WIN32)
# there seems to be a bug in the CMake generator implementation in CMake 2.8.x releases for WIN32
cmake_minimum_required(VERSION 3.0)
else()
cmake_minimum_required(VERSION 2.8)
endif()

list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR})

Expand Down

0 comments on commit dab498e

Please sign in to comment.