Skip to content

Commit

Permalink
Bumped min. req. CMake version to fix CMake warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
bilke committed Jan 5, 2021
1 parent 150223d commit 603ba18
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Set the minimum required version of cmake for a project.
cmake_minimum_required(VERSION 2.6)
cmake_minimum_required(VERSION 2.8.12)

# Add an executable to the project using the specified source files.
add_executable(tetgen tetgen.cxx predicates.cxx)

#Add a library to the project using the specified source files.
#Add a library to the project using the specified source files.
# In Linux/Unix, it will creates the libtet.a
add_library(tet STATIC tetgen.cxx predicates.cxx)

#Set properties on a target.
#Set properties on a target.
#We use this here to set -DTETLIBRARY for when compiling the
#library
set_target_properties(tet PROPERTIES "COMPILE_DEFINITIONS" TETLIBRARY)
set_target_properties(tet PROPERTIES "COMPILE_DEFINITIONS" TETLIBRARY)

0 comments on commit 603ba18

Please sign in to comment.