CMake: fix CMAKE_BUILD_TYPE and BITS check
parent
9b4519280a
commit
165ad14b0f
|
@ -52,7 +52,7 @@ SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_DEBUG "${BUILD_PATH}")
|
||||||
SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE "${BUILD_PATH}")
|
SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE "${BUILD_PATH}")
|
||||||
|
|
||||||
# Default build type is Debug in the SConstruct
|
# Default build type is Debug in the SConstruct
|
||||||
if(CMAKE_BUILD_TYPE STREQUAL "")
|
if("${CMAKE_BUILD_TYPE}" STREQUAL "")
|
||||||
set(CMAKE_BUILD_TYPE Debug)
|
set(CMAKE_BUILD_TYPE Debug)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -66,10 +66,12 @@ if(FLOAT_TYPE EQUAL 64)
|
||||||
set(FLOAT_TYPE_FLAG "double" CACHE STRING "")
|
set(FLOAT_TYPE_FLAG "double" CACHE STRING "")
|
||||||
endif(FLOAT_TYPE EQUAL 64)
|
endif(FLOAT_TYPE EQUAL 64)
|
||||||
|
|
||||||
set(BITS 32)
|
if(NOT DEFINED BITS)
|
||||||
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
set(BITS 32)
|
||||||
|
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||||
set(BITS 64)
|
set(BITS 64)
|
||||||
endif(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
endif(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||||
|
endif()
|
||||||
|
|
||||||
# Input from user for godot headers and the api file
|
# Input from user for godot headers and the api file
|
||||||
set(GODOT_HEADERS_DIR "godot-headers" CACHE STRING "")
|
set(GODOT_HEADERS_DIR "godot-headers" CACHE STRING "")
|
||||||
|
|
Loading…
Reference in New Issue