Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
glslang
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
glslang
Commits
3aa44314
Unverified
Commit
3aa44314
authored
Jul 14, 2020
by
John Kessenich
Committed by
GitHub
Jul 14, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2339 from ben-clayton/cmake-project
CMake: Move project() to top of CMakeLists.txt
parents
7bedc52a
6b20d83c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
CMakeLists.txt
CMakeLists.txt
+4
-3
No files found.
CMakeLists.txt
View file @
3aa44314
...
@@ -31,6 +31,9 @@
...
@@ -31,6 +31,9 @@
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
# POSSIBILITY OF SUCH DAMAGE.
project
(
glslang
LANGUAGES CXX
)
# increase to 3.1 once all major distributions
# increase to 3.1 once all major distributions
# include a version of CMake >= 3.1
# include a version of CMake >= 3.1
cmake_minimum_required
(
VERSION 2.8.12
)
cmake_minimum_required
(
VERSION 2.8.12
)
...
@@ -115,8 +118,6 @@ if(USE_CCACHE)
...
@@ -115,8 +118,6 @@ if(USE_CCACHE)
endif
(
CCACHE_FOUND
)
endif
(
CCACHE_FOUND
)
endif
()
endif
()
project
(
glslang
)
if
(
ENABLE_CTEST
)
if
(
ENABLE_CTEST
)
include
(
CTest
)
include
(
CTest
)
endif
()
endif
()
...
@@ -303,7 +304,7 @@ if(NOT CMAKE_VERSION VERSION_LESS "3.16")
...
@@ -303,7 +304,7 @@ if(NOT CMAKE_VERSION VERSION_LESS "3.16")
else
()
else
()
function
(
glslang_pch target pch
)
function
(
glslang_pch target pch
)
endfunction
()
endfunction
()
message
(
NOTICE
"Your CMake version is
${
CMAKE_VERSION
}
. Update to at least 3.16 to enable precompiled headers to speed up incremental builds"
)
message
(
"Your CMake version is
${
CMAKE_VERSION
}
. Update to at least 3.16 to enable precompiled headers to speed up incremental builds"
)
endif
()
endif
()
if
(
BUILD_EXTERNAL AND IS_DIRECTORY
${
CMAKE_CURRENT_SOURCE_DIR
}
/External
)
if
(
BUILD_EXTERNAL AND IS_DIRECTORY
${
CMAKE_CURRENT_SOURCE_DIR
}
/External
)
...
...
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