Skip to content
Snippets Groups Projects
Commit 3051ae9b authored by Umang Wadhwa's avatar Umang Wadhwa
Browse files

Added reference solution support for newer versions of gcc.

parent f80c9a07
No related merge requests found
No preview for this file type
File added
......@@ -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)
......
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