Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Missing debug info for MSVC static lib #224

Open
al-martyn1 opened this issue Apr 25, 2022 · 0 comments
Open

Missing debug info for MSVC static lib #224

al-martyn1 opened this issue Apr 25, 2022 · 0 comments

Comments

@al-martyn1
Copy link

al-martyn1 commented Apr 25, 2022

CMakeLists.txt

--original

if (JINJA2CPP_BUILD_SHARED)
    set(LIB_LINK_TYPE SHARED)
    message(STATUS "Jinja2C++ library type: SHARED")
else()
    set(LIB_LINK_TYPE STATIC)
    message(STATUS "Jinja2C++ library type: STATIC")
endif()

--fixed

if (JINJA2CPP_BUILD_SHARED)
    set(LIB_LINK_TYPE SHARED)
    message(STATUS "Jinja2C++ library type: SHARED")
else()
    set(LIB_LINK_TYPE STATIC)
    message(STATUS "Jinja2C++ library type: STATIC")
    if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
        set(MSVC_CXX_FLAGS ${MSVC_CXX_FLAGS} /Z7)
    endif()
endif()
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant