Skip to content

Commit 71d3a3f

Browse files
fixes #203 @1h
1 parent 3384702 commit 71d3a3f

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

CMakeLists.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,6 @@ endif()
2323
find_package(Coverage PATHS cmake)
2424
find_package(GTestExt PATHS cmake)
2525

26-
# This part MUST be executed before the loading of the CMake package
27-
set(SONAR_PROPERTIES_FILE ${CMAKE_CURRENT_BINARY_DIR}/sonar-project.properties)
28-
message(STATUS "Generating SONAR properties file ${SONAR_PROPERTIES_FILE}")
29-
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/sonar-project.properties.in ${SONAR_PROPERTIES_FILE})
30-
31-
find_package(SonarCloud PATHS cmake)
32-
3326
# Versionning infos -----------------------------------------
3427
#
3528
if( CMAKE_BUILD_TYPE MATCHES Release )
@@ -49,6 +42,13 @@ endif()
4942
message(STATUS "Building ${PROJECT_NAME} version ${CPP_LOGGER_VERSION}")
5043
add_definitions( -DCPP_LOGGER_VERSION="${CPP_LOGGER_VERSION}")
5144

45+
# This part MUST be executed before the loading of the CMake package
46+
set(SONAR_PROPERTIES_FILE ${CMAKE_CURRENT_BINARY_DIR}/sonar-project.properties)
47+
message(STATUS "Generating SONAR properties file ${SONAR_PROPERTIES_FILE}")
48+
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/sonar-project.properties.in ${SONAR_PROPERTIES_FILE})
49+
50+
find_package(SonarCloud PATHS cmake)
51+
5252
# targets --------------------------------------------------
5353
#
5454
# project's public headers

sonar-project.properties.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Sonar cloud configuration fo @PROJECT_NAME@ - @PROJECT_VERSION@
1+
# Sonar cloud configuration fo @PROJECT_NAME@ - @CPP_LOGGER_VERSION@
22
#
33
# Description: @PROJECT_DESCRIPTION@
44

0 commit comments

Comments
 (0)