mirror of
https://gitee.com/openharmony/third_party_spirv-tools
synced 2024-11-27 17:40:28 +00:00
Skip building example executable when asked
This commit is contained in:
parent
c935253c91
commit
5c19de2510
@ -12,6 +12,8 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
add_executable(spirv-tools-cpp-example main.cpp)
|
||||
spvtools_default_compile_options(spirv-tools-cpp-example)
|
||||
target_link_libraries(spirv-tools-cpp-example PRIVATE SPIRV-Tools-opt)
|
||||
if (NOT ${SPIRV_SKIP_EXECUTABLES})
|
||||
add_executable(spirv-tools-cpp-example main.cpp)
|
||||
spvtools_default_compile_options(spirv-tools-cpp-example)
|
||||
target_link_libraries(spirv-tools-cpp-example PRIVATE SPIRV-Tools-opt)
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user