Skip to content

Commit 2a26553

Browse files
Build the C extension with optimize options enabled (#230)
1 parent 7289522 commit 2a26553

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

+3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ set(CMAKE_PREFIX_PATH ${PROJECT_SOURCE_DIR}/pybind11/include ${CMAKE_PREFIX_PATH
2525
option(LINK_STATIC "Link against static libraries" OFF)
2626
MESSAGE(STATUS "LINK_STATIC: " ${LINK_STATIC})
2727

28+
if (NOT CMAKE_BUILD_TYPE)
29+
set(CMAKE_BUILD_TYPE Release)
30+
endif ()
2831
MESSAGE(STATUS "CMAKE_BUILD_TYPE: " ${CMAKE_BUILD_TYPE})
2932
set(THREADS_PREFER_PTHREAD_FLAG TRUE)
3033
find_package(Threads REQUIRED)

0 commit comments

Comments
 (0)