protect cmake_policy
This commit is contained in:
parent
166f2234c8
commit
da7a706ee8
|
|
@ -15,10 +15,12 @@
|
|||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
cmake_minimum_required (VERSION 3.9)
|
||||
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.16.2)
|
||||
# Use standard target names
|
||||
cmake_policy(SET CMP0078 NEW)
|
||||
# Allows SWIG_MODULE_NAME to be set
|
||||
cmake_policy(SET CMP0086 NEW)
|
||||
endif()
|
||||
|
||||
project(STA VERSION 2.0.18)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue