Skip to content

Debug flag in cmake #1588

Closed
Closed
@alokpr

Description

Environment info

Operating System: x86_64-linux-gnu

CPU: Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz

C++/Python/R version: gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.9)

Error message

https://github.com/Microsoft/LightGBM/blob/master/CMakeLists.txt#L111

CMakeLists.txt specifies -O3 optimization flag, which makes it difficult to build the library for different build configs. Optimization flag should be defined as part of external build config using CMAKE_BUILD_TYPE=[Debug,Release].

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions