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
967fa92d
Unverified
Commit
967fa92d
authored
Sep 12, 2020
by
nihui
Committed by
GitHub
Sep 12, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try to find python interpreter from host first
parent
6a6e311d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
CMakeLists.txt
CMakeLists.txt
+7
-1
No files found.
CMakeLists.txt
View file @
967fa92d
...
@@ -228,9 +228,15 @@ function(glslang_set_link_args TARGET)
...
@@ -228,9 +228,15 @@ function(glslang_set_link_args TARGET)
endif
()
endif
()
endfunction
(
glslang_set_link_args
)
endfunction
(
glslang_set_link_args
)
if
(
NOT COMMAND find_host_package
)
macro
(
find_host_package
)
find_package
(
${
ARGN
}
)
endmacro
()
endif
()
# CMake needs to find the right version of python, right from the beginning,
# CMake needs to find the right version of python, right from the beginning,
# otherwise, it will find the wrong version and fail later
# otherwise, it will find the wrong version and fail later
find_package
(
PythonInterp 3 REQUIRED
)
find_
host_
package
(
PythonInterp 3 REQUIRED
)
# Root directory for build-time generated include files
# Root directory for build-time generated include files
set
(
GLSLANG_GENERATED_INCLUDEDIR
"
${
CMAKE_BINARY_DIR
}
/include"
)
set
(
GLSLANG_GENERATED_INCLUDEDIR
"
${
CMAKE_BINARY_DIR
}
/include"
)
...
...
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