Skip to content

Commit

Permalink
fixes #203 @1h
Browse files Browse the repository at this point in the history
  • Loading branch information
HerbertKoelman committed Oct 27, 2019
1 parent 3384702 commit 71d3a3f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,6 @@ endif()
find_package(Coverage PATHS cmake)
find_package(GTestExt PATHS cmake)

# This part MUST be executed before the loading of the CMake package
set(SONAR_PROPERTIES_FILE ${CMAKE_CURRENT_BINARY_DIR}/sonar-project.properties)
message(STATUS "Generating SONAR properties file ${SONAR_PROPERTIES_FILE}")
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/sonar-project.properties.in ${SONAR_PROPERTIES_FILE})

find_package(SonarCloud PATHS cmake)

# Versionning infos -----------------------------------------
#
if( CMAKE_BUILD_TYPE MATCHES Release )
Expand All @@ -49,6 +42,13 @@ endif()
message(STATUS "Building ${PROJECT_NAME} version ${CPP_LOGGER_VERSION}")
add_definitions( -DCPP_LOGGER_VERSION="${CPP_LOGGER_VERSION}")

# This part MUST be executed before the loading of the CMake package
set(SONAR_PROPERTIES_FILE ${CMAKE_CURRENT_BINARY_DIR}/sonar-project.properties)
message(STATUS "Generating SONAR properties file ${SONAR_PROPERTIES_FILE}")
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/sonar-project.properties.in ${SONAR_PROPERTIES_FILE})

find_package(SonarCloud PATHS cmake)

# targets --------------------------------------------------
#
# project's public headers
Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sonar cloud configuration fo @PROJECT_NAME@ - @PROJECT_VERSION@
# Sonar cloud configuration fo @PROJECT_NAME@ - @CPP_LOGGER_VERSION@
#
# Description: @PROJECT_DESCRIPTION@

Expand Down

0 comments on commit 71d3a3f

Please sign in to comment.