Allow selection of the "Platform Toolset", so that XP binaries can be built.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@25952 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
John Kessenich 2014-03-17 23:56:45 +00:00
parent 71e01cbab9
commit 0af1e7c608
2 changed files with 5 additions and 2 deletions

View File

@ -1,6 +1,7 @@
cmake_minimum_required(VERSION 2.8)
set(CMAKE_INSTALL_PREFIX "install" CACHE STRING "prefix" FORCE)
set(CMAKE_GENERATOR_TOOLSET "v110" CACHE STRING "Platform Toolset" FORCE)
project(glslang)

View File

@ -18,9 +18,11 @@ set(LIBRARIES
Preprocessor
OGLCompiler)
if(UNIX)
if(WIN32)
set(LIBRARIES ${LIBRARIES} psapi)
elseif(UNIX)
set(LIBRARIES ${LIBRARIES} pthread)
endif(UNIX)
endif(WIN32)
target_link_libraries(glslangValidator ${LIBRARIES})