summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/glslang/src/glslang/OSDependent/Windows/CMakeLists.txt
blob: 399760c30a7d0ed38d204f18d09b53a2cbdc6080 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
set(SOURCES ossource.cpp ../osinclude.h)

add_library(OSDependent STATIC ${SOURCES})
set_property(TARGET OSDependent PROPERTY FOLDER glslang)

# MinGW GCC complains about function pointer casts to void*.
# Turn that off with -fpermissive.
if(${CMAKE_CXX_COMPILER_ID} MATCHES "GNU")
  target_compile_options(OSDependent PRIVATE -fpermissive)
endif()

if(WIN32)
    source_group("Source" FILES ${SOURCES})
endif(WIN32)

install(TARGETS OSDependent 
        ARCHIVE DESTINATION lib)