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
395b7dd3
Commit
395b7dd3
authored
Jan 01, 2016
by
baldurk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove custom command for bison, it fails if bison is not found
parent
530690e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
16 deletions
+0
-16
CMakeLists.txt
glslang/CMakeLists.txt
+0
-16
No files found.
glslang/CMakeLists.txt
View file @
395b7dd3
...
...
@@ -64,22 +64,6 @@ set(HEADERS
MachineIndependent/preprocessor/PpContext.h
MachineIndependent/preprocessor/PpTokens.h
)
find_package
(
BISON
)
if
(
NOT BISON_FOUND
)
if
(
WIN32
)
set
(
BISON_EXECUTABLE ../tools/bison.exe
)
message
(
"bison not found. Assuming it is at
${
BISON_EXECUTABLE
}
"
)
else
()
message
(
FATAL_ERROR
"bison required but not found. Please install via your package management tool."
)
endif
()
endif
()
# Always use a custom command since our use of --defines isn't assumed by CMake's BISON_TARGET,
# which ends up causing the target to always be rebuilt.
add_custom_command
(
OUTPUT
${
CMAKE_CURRENT_SOURCE_DIR
}
/MachineIndependent/glslang_tab.cpp
${
CMAKE_CURRENT_SOURCE_DIR
}
/MachineIndependent/glslang_tab.cpp.h
COMMAND
${
BISON_EXECUTABLE
}
--defines=
${
CMAKE_CURRENT_SOURCE_DIR
}
/MachineIndependent/glslang_tab.cpp.h -t
${
CMAKE_CURRENT_SOURCE_DIR
}
/MachineIndependent/glslang.y -o
${
CMAKE_CURRENT_SOURCE_DIR
}
/MachineIndependent/glslang_tab.cpp
MAIN_DEPENDENCY MachineIndependent/glslang.y
WORKING_DIRECTORY
${
CMAKE_CURRENT_SOURCE_DIR
}
)
set
(
BISON_GLSLParser_OUTPUT_SOURCE
${
CMAKE_CURRENT_SOURCE_DIR
}
/MachineIndependent/glslang_tab.cpp
)
add_library
(
glslang STATIC
${
BISON_GLSLParser_OUTPUT_SOURCE
}
${
SOURCES
}
${
HEADERS
}
)
...
...
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