Skip to content

Commit

Permalink
Change CMakeLists: Do not upgrade warnings to errors
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanieKemna committed Jul 16, 2024
1 parent 09bfc7a commit f04d035
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/mlfmu/fmu_build/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.9)
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")

project(cpp-fmus)
Expand Down Expand Up @@ -28,13 +28,13 @@ set(FMU_NAMES)
# ==============================================================================

if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
add_compile_options("-Wall" "-Wextra" "-Wpedantic" "-Werror")
add_compile_options("-Wall" "-Wextra" "-Wpedantic")
add_compile_options("-Wno-parentheses")
if(FMU_USE_STATIC_RUNTIME)
add_compile_options("-static")
endif()
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
add_compile_options("/W4" "/WX")
add_compile_options("/W3")
add_compile_options("/wd4996")
add_definitions("-D_SCL_SECURE_NO_WARNINGS" "-D_CRT_SECURE_NO_WARNINGS")
if(FMU_USE_STATIC_RUNTIME)
Expand Down Expand Up @@ -147,7 +147,7 @@ foreach(fmuName IN LISTS FMU_NAMES)
"${fmuSourceDir}/sources"
"${fmuGuidDir}"
)

# Target to generate FMU contents
add_custom_command(OUTPUT "${fmuOutputFile}"
COMMAND "${CMAKE_COMMAND}" "-E" "copy_directory" "${fmuSourceDir}" "${fmuStagingDir}"
Expand Down

0 comments on commit f04d035

Please sign in to comment.