Skip to content

Commit 2835ce0

Browse files
committed
[conan] Forward build_type to cmake
1 parent 024ac61 commit 2835ce0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

conanfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def _configure_cmake(self):
8484
os.environ['PYTHONPATH'] = self._extra_python_path() + os.pathsep + os.environ.get('PYTHONPATH', '')
8585
cmake = CMake(self)
8686
cmake.definitions['DISABLE_TESTS'] = True
87-
cmake.definitions['CMAKE_BUILD_TYPE'] = 'RelWithDebInfo'
87+
cmake.definitions['CMAKE_BUILD_TYPE'] = self.settings.get_safe("build_type", "Release")
8888
cmake.definitions['PIP_INSTALL_PREFIX'] = self.package_folder
8989
cmake.definitions['PYTHON_BINDING_BUILD_PYTHON2_AND_PYTHON3'] = enable_python2_and_python3(self.options)
9090
cmake.configure()

0 commit comments

Comments
 (0)