Skip to content

Commit

Permalink
CMake version bumps and cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nmwsharp committed Feb 6, 2022
1 parent a6b7ecf commit 8ca660a
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.5...3.22)

project(polyscope)

Expand Down
2 changes: 0 additions & 2 deletions deps/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
cmake_minimum_required(VERSION 3.5)

if("${POLYSCOPE_BACKEND_OPENGL3_GLFW}")

## Glad
Expand Down
2 changes: 0 additions & 2 deletions deps/glad/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
cmake_minimum_required(VERSION 3.1)

add_subdirectory(src)
2 changes: 0 additions & 2 deletions deps/stb/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
cmake_minimum_required(VERSION 3.1)

# Create a library for the viewer code
add_library(
stb
Expand Down
4 changes: 3 additions & 1 deletion examples/demo-app/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
cmake_minimum_required(VERSION 2.8.9)
cmake_minimum_required(VERSION 2.8.9...3.22)

project(polyscope-demo-app)

# Maybe stop from CMAKEing in the wrong place
if (CMAKE_BINARY_DIR STREQUAL CMAKE_SOURCE_DIR)
Expand Down
2 changes: 0 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
cmake_minimum_required(VERSION 3.1)

# Maybe stop from CMAKEing in the wrong place
if (CMAKE_BINARY_DIR STREQUAL CMAKE_SOURCE_DIR)
message(FATAL_ERROR "Source and build directories cannot be the same. Go use the /build directory.")
Expand Down
2 changes: 1 addition & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.10.0)
cmake_minimum_required(VERSION 3.10.0...3.22)

# Set up testing
enable_testing()
Expand Down
2 changes: 1 addition & 1 deletion test/CMakeLists.txt.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8.2)
cmake_minimum_required(VERSION 2.8.2...3.22)

project(googletest-download NONE)

Expand Down

0 comments on commit 8ca660a

Please sign in to comment.