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
b37dc0e4
Commit
b37dc0e4
authored
Jun 02, 2016
by
David Neto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
For MinGW, statically link exes against basic runtimes
Avoids the need to ship basic runtimes like libgcc_s_sjlj-1.dll with the executables.
parent
98f2b3bf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
+14
-0
CMakeLists.txt
CMakeLists.txt
+11
-0
CMakeLists.txt
StandAlone/CMakeLists.txt
+2
-0
CMakeLists.txt
gtests/CMakeLists.txt
+1
-0
No files found.
CMakeLists.txt
View file @
b37dc0e4
...
...
@@ -24,6 +24,17 @@ elseif(${CMAKE_CXX_COMPILER_ID} MATCHES "Clang")
add_definitions
(
-std=c++11
)
endif
()
function
(
glslang_set_link_args TARGET
)
# For MinGW compiles, statically link against the GCC and C++ runtimes.
# This avoids the need to ship those runtimes as DLLs.
if
(
WIN32
)
if
(
${
CMAKE_CXX_COMPILER_ID
}
MATCHES
"GNU"
)
set_target_properties
(
${
TARGET
}
PROPERTIES
LINK_FLAGS
"-static -static-libgcc -static-libstdc++"
)
endif
()
endif
(
WIN32
)
endfunction
(
glslang_set_link_args
)
# We depend on these for later projects, so they should come first.
add_subdirectory
(
External
)
...
...
StandAlone/CMakeLists.txt
View file @
b37dc0e4
...
...
@@ -15,6 +15,8 @@ add_executable(glslangValidator ${SOURCES})
add_executable
(
spirv-remap
${
REMAPPER_SOURCES
}
)
set_property
(
TARGET glslangValidator PROPERTY FOLDER tools
)
set_property
(
TARGET spirv-remap PROPERTY FOLDER tools
)
glslang_set_link_args
(
glslangValidator
)
glslang_set_link_args
(
spirv-remap
)
set
(
LIBRARIES
glslang
...
...
gtests/CMakeLists.txt
View file @
b37dc0e4
...
...
@@ -22,6 +22,7 @@ if (TARGET gmock)
add_executable
(
glslangtests
${
TEST_SOURCES
}
)
set_property
(
TARGET glslangtests PROPERTY FOLDER tests
)
glslang_set_link_args
(
glslangtests
)
install
(
TARGETS glslangtests
RUNTIME DESTINATION bin
)
...
...
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