mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-12 14:33:28 +00:00
cmake - fix regression with policy not taking effect after 3971408
This commit is contained in:
@@ -35,11 +35,10 @@ else()
|
|||||||
set(RELEASE_VERSION "0.8.0")
|
set(RELEASE_VERSION "0.8.0")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
project(IfcOpenShell VERSION ${RELEASE_VERSION})
|
|
||||||
|
|
||||||
add_definitions(-D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR)
|
add_definitions(-D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR)
|
||||||
|
|
||||||
if(POLICY CMP0141) # 3.25+
|
if(POLICY CMP0141) # 3.25+
|
||||||
|
# Has to be set before `project` to take effect.
|
||||||
cmake_policy(SET CMP0141 NEW) # Support for `CMAKE_MSVC_DEBUG_INFORMATION_FORMAT`.
|
cmake_policy(SET CMP0141 NEW) # Support for `CMAKE_MSVC_DEBUG_INFORMATION_FORMAT`.
|
||||||
endif()
|
endif()
|
||||||
if(POLICY CMP0144) # 3.27
|
if(POLICY CMP0144) # 3.27
|
||||||
@@ -49,6 +48,8 @@ if(POLICY CMP0167) # 3.30
|
|||||||
cmake_policy(SET CMP0167 OLD)
|
cmake_policy(SET CMP0167 OLD)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
project(IfcOpenShell VERSION ${RELEASE_VERSION})
|
||||||
|
|
||||||
if(NOT CMAKE_BUILD_TYPE)
|
if(NOT CMAKE_BUILD_TYPE)
|
||||||
set(CMAKE_BUILD_TYPE "Release")
|
set(CMAKE_BUILD_TYPE "Release")
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Reference in New Issue
Block a user