Commit aa97d5a1 authored by Burlen Loring's avatar Burlen Loring

apply fpermissive only to swig generated code

parent 05df6f6e
......@@ -15,7 +15,7 @@ endif()
if (NOT MSVC)
if (NOT CMAKE_CXX_FLAGS)
set(tmp "-fPIC -std=c++11 -Wall -Wextra -fpermissive")
set(tmp "-fPIC -std=c++11 -Wall -Wextra")
if (BUILD_STATIC_EXECS)
set(tmp "${tmp} -static -static-libgcc -static-libstdc++ -pthread -Wl,-Bstatic")
endif()
......
......@@ -74,5 +74,7 @@ if (ENABLE_PYTHON)
MAIN_DEPENDENCY ${input_file}
DEPENDS ${depend_file} ${depends}
COMMENT "Generating python bindings for ${input}...")
set_source_files_properties(${output}
PROPERTIES COMPILE_FLAGS -fpermissive)
endfunction()
endif()
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