From decc7ed888ec3a9b0afc8588e1209bddbc447495 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Fri, 11 Jan 2019 17:23:58 +0100 Subject: [PATCH] Try to fix a compil issue in qa test --- qa/common/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/qa/common/CMakeLists.txt b/qa/common/CMakeLists.txt index ab5bdcd268..4c85f21620 100644 --- a/qa/common/CMakeLists.txt +++ b/qa/common/CMakeLists.txt @@ -51,7 +51,7 @@ set( common_srcs view/test_zoom_controller.cpp ) -set( common_libs +set( common_libs common legacy_gal polygon @@ -62,6 +62,11 @@ set( common_libs ${wxWidgets_LIBRARIES} ) +# test_shape_arc.cpp does not compile without -fpermissive compil option: +if( CMAKE_COMPILER_IS_GNUCXX ) + set( CMAKE_CXX_FLAGS "-fpermissive ${CMAKE_CXX_FLAGS}" ) +endif() + # Use code with GERBVIEW defines in place (primarily IU difference) add_executable( qa_common_gerbview ${common_srcs} )