Support compilation via MinGW
Change-Id: Ie52f0b1b2b20948c6f4b3cb5474537d36a5a3385
This commit is contained in:
parent
2de792c574
commit
ed5fd5d846
3 changed files with 8 additions and 2 deletions
|
|
@ -4,6 +4,12 @@ set(SOURCES ossource.cpp ../osinclude.h)
|
|||
|
||||
add_library(OSDependent STATIC ${SOURCES})
|
||||
|
||||
# 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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue