Commit 544adf6b authored by Deepak Rangarajan's avatar Deepak Rangarajan Committed by Mark Meredith
Browse files

switch cmake to use target_compile_definitions instead of add_definitions

parent af511efb
Loading
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -23,7 +23,6 @@ find_package(pegtl REQUIRED)

if (CSG_CGAL_ENABLED)
   find_package(CGAL REQUIRED)
   add_definitions(-DUSE_CGAL)
endif()

add_subdirectory(src/csg)
@@ -34,3 +33,7 @@ target_include_directories(csg-eb
  )

target_compile_features(csg-eb PRIVATE cxx_std_17)

if (CSG_CGAL_ENABLED)
   target_compile_definitions(csg-eb PUBLIC USE_CGAL)
endif()