Commit 0fafceb 1 parent 7c0c3ab commit 0fafceb Copy full SHA for 0fafceb
File tree 1 file changed +6
-9
lines changed
1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,12 @@ if(NOT EXISTS ${PYTHON_COMMAND})
81
81
endif ()
82
82
endif ()
83
83
84
+ if (NOT CMAKE_BUILD_TYPE )
85
+ set (CMAKE_BUILD_TYPE "Release" CACHE STRING
86
+ "Build type release is default on single-configuration build system like GNU make."
87
+ FORCE)
88
+ endif ()
89
+
84
90
###############################################################################
85
91
# General settings
86
92
###############################################################################
@@ -144,12 +150,6 @@ if(BUILD_CPP_LIB)
144
150
###############################################################################
145
151
add_subdirectory (third_party)
146
152
147
- if (NOT CMAKE_BUILD_TYPE )
148
- set (CMAKE_BUILD_TYPE "Release" CACHE STRING
149
- "Build type release is default on single-configuration build system like GNU make."
150
- FORCE)
151
- endif ()
152
-
153
153
# Flags
154
154
if (MSVC )
155
155
# Force to always compile with W4
@@ -342,9 +342,6 @@ if(BUILD_PYTHON_PACKAGE)
342
342
# Wheel
343
343
if (UNIX )
344
344
if (MAKE_MANYLINUX_WHEEL)
345
- if (NOT CMAKE_BUILD_TYPE )
346
- set (CMAKE_BUILD_TYPE "Release" )
347
- endif ()
348
345
add_custom_command (OUTPUT ${NBLA_PYTHON_OUTPUT_WHEEL}
349
346
COMMAND ${CMAKE_COMMAND} -E remove -f ${CMAKE_BINARY_DIR} /dist/*.whl
350
347
COMMAND ${CMAKE_COMMAND} -E env
You can’t perform that action at this time.
0 commit comments