Skip to content

Commit

Permalink
Use target_compile_definitions()
Browse files Browse the repository at this point in the history
  • Loading branch information
afabri committed Oct 9, 2024
1 parent 74e8e23 commit d817dda
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ if(TARGET CGAL::Eigen3_support)
if(SuiteSparse_UMFPACK_FOUND OR TARGET SuiteSparse::umfpack)
message(STATUS "SuiteSparse_LIBS: ${SuiteSparse_LIBRARIES}")
message(STATUS "Orbifold Tutte Embeddings will use UmfPackLU")
add_definitions(-DEIGEN_DONT_ALIGN_STATICALLY)
add_definitions(-DCGAL_SMP_USE_SUITESPARSE_SOLVERS)
else()
message(STATUS "NOTICE: The example `orbifold.cpp` will be compiled without the SuiteSparse library and UmfPack. Try setting SuiteSparse_UMF_INCLUDE_DIR and at least one of SuiteSparse_UMFPACK_LIBRARY_RELEASE and SuiteSparse_UMFPACK_LIBRARY_DEBUG to you UMFPACK installation.")
endif()
Expand Down Expand Up @@ -60,6 +58,8 @@ if(TARGET CGAL::Eigen3_support)
create_single_source_cgal_program( "iterative_authalic_parameterizer.cpp" )
target_link_libraries(iterative_authalic_parameterizer PRIVATE CGAL::Eigen3_support)
if(SuiteSparse_FOUND)
target_compile_definitions(ARAP_parameterization PRIVATE -DEIGEN_DONT_ALIGN_STATICALLY -DCGAL_SMP_USE_SUITESPARSE_SOLVERS )
target_compile_definitions(orbifold PRIVATE -DEIGEN_DONT_ALIGN_STATICALLY -DCGAL_SMP_USE_SUITESPARSE_SOLVERS )
target_link_libraries(ARAP_parameterization PRIVATE ${SuiteSparse_LIBRARIES})
target_link_libraries(orbifold PRIVATE ${SuiteSparse_LIBRARIES})
endif()
Expand Down

0 comments on commit d817dda

Please sign in to comment.