mirror of https://github.com/CGAL/cgal
Fix LEDA support with gcc
This commit is contained in:
parent
4f14095cb8
commit
c180c0678d
|
|
@ -41,7 +41,16 @@ function(use_CGAL_LEDA_support target)
|
||||||
message(FATAL_ERROR "use_CGAL_LEDA_support is use whereas LEDA_FOUND is false.")
|
message(FATAL_ERROR "use_CGAL_LEDA_support is use whereas LEDA_FOUND is false.")
|
||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
target_compile_options(${target} ${keyword} ${LEDA_CXX_FLAGS} ${LEDA_DEFINITIONS})
|
separate_arguments(LIST_LEDA_CXX_FLAGS UNIX_COMMAND "${LEDA_CXX_FLAGS}")
|
||||||
|
separate_arguments(LIST_LEDA_DEFINITIONS UNIX_COMMAND "${LEDA_DEFINITIONS}")
|
||||||
|
|
||||||
|
if(CMAKE_VERSION VERSION_LESS 3.3)
|
||||||
|
target_compile_options(${target} ${keyword} ${LIST_LEDA_CXX_FLAGS})
|
||||||
|
else()
|
||||||
|
target_compile_options(${target} ${keyword} $<$<COMPILE_LANGUAGE:CXX>:${LIST_LEDA_CXX_FLAGS}>)
|
||||||
|
endif()
|
||||||
|
target_compile_options(${target} ${keyword} ${LIST_LEDA_DEFINITIONS})
|
||||||
|
|
||||||
target_include_directories(${target} SYSTEM ${keyword} ${LEDA_INCLUDE_DIR})
|
target_include_directories(${target} SYSTEM ${keyword} ${LEDA_INCLUDE_DIR})
|
||||||
target_link_libraries(${target} ${keyword} ${LEDA_LIBRARIES} ${LEDA_LINKER_FLAGS})
|
target_link_libraries(${target} ${keyword} ${LEDA_LIBRARIES} ${LEDA_LINKER_FLAGS})
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue