Commit 3051ae9b authored by Umang Wadhwa's avatar Umang Wadhwa
Browse files

Added reference solution support for newer versions of gcc.

parent f80c9a07
No preview for this file type
......@@ -32,8 +32,13 @@ else(DRAWSVG_BUILD_REFERENCE)
# Import reference
if (UNIX)
set_property(TARGET drawsvg_ref PROPERTY IMPORTED_LOCATION
${CMAKE_CURRENT_SOURCE_DIR}/reference/libdrawsvgref.a)
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 5.2)
set_property(TARGET drawsvg_ref PROPERTY IMPORTED_LOCATION
${CMAKE_CURRENT_SOURCE_DIR}/reference/libdrawsvgref.a)
else()
set_property(TARGET drawsvg_ref PROPERTY IMPORTED_LOCATION
${CMAKE_CURRENT_SOURCE_DIR}/reference/libdrawsvgref_old.a)
endif()
endif(UNIX)
if(APPLE)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment