Skip to content

Build debug libraries when CMAKE_BUILD_TYPE is set to Debug #151

New issue

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

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

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from

Conversation

dbrnz
Copy link
Contributor

@dbrnz dbrnz commented Aug 29, 2016

This should address issue #12.

@jcfr
Copy link
Contributor

jcfr commented Sep 5, 2016

Thanks for the patch 👍 I will review and integrate later this week.

CMakeLists.txt Outdated
@@ -33,6 +33,10 @@ if(CMAKE_CROSSCOMPILING)
cmake_minimum_required(VERSION 3.3) # Version introducing CROSSCOMPILING_EMULATOR
endif()

if(WIN32 AND "${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CMAKE_DEBUG_POSTFIX variable only preseeds the Debug build type suffix, so there is no need to add that to the condition.

https://cmake.org/cmake/help/v2.8.5/cmake.html#variable:CMAKE_DEBUG_POSTFIX

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @adrianbroher, the redundant check on CMAKE_BUILD_TYPE has been removed.

@jcfr jcfr added the Type: Enhancement Improvement to functionality label Feb 15, 2017
@jcfr jcfr closed this Dec 13, 2018
@dbrnz dbrnz deleted the windebug branch November 28, 2019 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Improvement to functionality
Development

Successfully merging this pull request may close these issues.

3 participants