Skip to content

Commit

Permalink
[#1] Fixed compilation errors
Browse files Browse the repository at this point in the history
Signed-off-by: Clovis Durand <cd.clovel19@gmail.com>
  • Loading branch information
Clovel committed Mar 2, 2020
1 parent 312d54a commit ff5f99f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion generator/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ message("MAIN SOURCES : ${SOURCES}")
# Link directories ----------------------------------------

# Target definition ---------------------------------------
add_executable()(${CMAKE_PROJECT_NAME}
add_executable(${CMAKE_PROJECT_NAME}
${SOURCES}
)
set_target_properties(${CMAKE_PROJECT_NAME} PROPERTIES
Expand Down
8 changes: 6 additions & 2 deletions generator/src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
/**
* @brief OSCO-OD-Gen main test file
* @brief OSCO-OD-Gen main source file
*
* @file main.cpp
*/

/* Includes -------------------------------------------- */
/* C++ system */
#include <iostream>

/* C system */
#include <cstring>

/* Defines --------------------------------------------- */

/* Notes ----------------------------------------------- */
Expand All @@ -26,7 +30,7 @@ static void print_usage(const char * const pProgName)
/* Main tests ------------------------------------------ */
/* ----------------------------------------------------- */
int main(const int argc, const char * const * const argv) {
if ((argc < 2) || (strcmp(argv[1], "--help") == 0)) {
if ((argc < 2) || (std::strcmp(argv[1], "--help") == 0)) {
print_usage(argv[0]);
return EXIT_FAILURE;
}
Expand Down
4 changes: 4 additions & 0 deletions generator/tests/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@
*/

/* Includes -------------------------------------------- */
/* C++ system */
#include <iostream>

/* C system */
#include <cstring>

/* Defines --------------------------------------------- */

/* Notes ----------------------------------------------- */
Expand Down

0 comments on commit ff5f99f

Please sign in to comment.