Skip to content

Fix #311, removed unnecessary check for CMAKE_BUILD_TYPE #345

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 1 commit into from

Conversation

studiofuga
Copy link
Contributor

The check for Release or Debug in CMAKE_BUILD_TYPE breaks some assumption in Debian packaging.
Since the check is useless, it has been removed.

Also fix some PUBLIC/PRIVATE mistake in target_include_directories to correctly pass the
properties to client code.

The check for Release or Debug in CMAKE_BUILD_TYPE breaks some assumption in Debian packaging.
Since the check is useless, it has been removed.

Also fix some PUBLIC/PRIVATE mistake in target_include_directories to correctly pass the
properties to client code.
Comment on lines -7 to -10
set(MAJOR 1)
set(MINOR 6)
set(PATCH 0)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Do not remove these lines as, MAJOR, MINOR and PATCH are being used as a CMake property

Comment on lines +9 to +14
if (NOT EXISTS ${CMAKE_SOURCE_DIR}/lib/asio/asio/README)
message("Updating submodules")
execute_process(
COMMAND git submodule update --init
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
endif ()
Copy link
Collaborator

Choose a reason for hiding this comment

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

It is the developer responsibility to do this and not the CMake. We want to keep the CMakeLists.txt minimal if possible.

Suggested change
if (NOT EXISTS ${CMAKE_SOURCE_DIR}/lib/asio/asio/README)
message("Updating submodules")
execute_process(
COMMAND git submodule update --init
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
endif ()
set(MAJOR 1)
set(MINOR 6)
set(PATCH 0)

@jmigual jmigual added the build label Mar 1, 2022
@jmigual jmigual linked an issue Mar 1, 2022 that may be closed by this pull request
@jmigual
Copy link
Collaborator

jmigual commented Mar 8, 2022

Merged as 9173946

Thanks @studiofuga

@jmigual jmigual closed this Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unnecessary check for CMAKE_BUILD_TYPE
2 participants