Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
232112c8
Commit
232112c8
authored
Jul 12, 2018
by
fanliwen
Browse files
move cmake_minimum_required to the top of the file where others are listed
parent
d6bd3c21
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
CMakeLists.txt
CMakeLists.txt
+3
-3
No files found.
CMakeLists.txt
View file @
232112c8
if
(
MSVC
)
if
(
CMAKE_CXX_COMPILER_ID STREQUAL
"AppleClang"
)
cmake_minimum_required
(
VERSION 3.12
)
elseif
(
MSVC
)
cmake_minimum_required
(
VERSION 3.8
)
cmake_minimum_required
(
VERSION 3.8
)
elseif
(
USE_GPU OR APPLE
)
elseif
(
USE_GPU OR APPLE
)
cmake_minimum_required
(
VERSION 3.2
)
cmake_minimum_required
(
VERSION 3.2
)
...
@@ -23,8 +25,6 @@ elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
...
@@ -23,8 +25,6 @@ elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
if
(
CMAKE_CXX_COMPILER_VERSION VERSION_LESS
"3.8"
)
if
(
CMAKE_CXX_COMPILER_VERSION VERSION_LESS
"3.8"
)
message
(
FATAL_ERROR
"Insufficient Clang version"
)
message
(
FATAL_ERROR
"Insufficient Clang version"
)
endif
()
endif
()
elseif
(
CMAKE_CXX_COMPILER_ID STREQUAL
"AppleClang"
)
cmake_minimum_required
(
VERSION 3.12
)
endif
()
endif
()
if
(
APPLE
)
if
(
APPLE
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment