@ -35,6 +35,9 @@ if(POLICY CMP0028)
cmake_policy(SET CMP0028 NEW)
endif()
# Use folders for nice tree in Visual Studio and XCode
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/modules/")
# Find Corrade first so we can check on the target
@ -760,6 +760,7 @@ if(NEED_WGLCONTEXT OR WITH_WGLCONTEXT)
if(BUILD_STATIC_PIC)
set_target_properties(MagnumWglContextObjects PROPERTIES POSITION_INDEPENDENT_CODE ON)
set_target_properties(MagnumWglContextObjects PROPERTIES FOLDER "Magnum/Platform")
# Also create proper static library, if requested
if(WITH_WGLCONTEXT)