Skip to content

Commit

Permalink
Call CMAKE_MINIMUM_REQUIRED before PROJECT (fixes #1019)
Browse files Browse the repository at this point in the history
  • Loading branch information
stloeffler committed Oct 22, 2023
1 parent b1f6705 commit eb19063
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@
# Setup and User Options
# ======================

# Set project name.
PROJECT(TeXworks)

# CMake 3.1 significantly improves support for imported targets, Qt5, c++11, etc.
CMAKE_MINIMUM_REQUIRED(VERSION 3.1)
CMAKE_POLICY(VERSION 3.1)
Expand Down Expand Up @@ -83,6 +80,9 @@ if(POLICY CMP0077)
cmake_policy(SET CMP0077 NEW)
endif()

# Set project name.
PROJECT(TeXworks)

SET(CMAKE_COLOR_MAKEFILE ON)
# Always add the current source and binary directories to the header include
# path when compiling.
Expand Down

0 comments on commit eb19063

Please sign in to comment.