Changeset 7f25d743 in OpenModelica
- Timestamp:
- 2020-10-21T14:04:17+02:00 (3 years ago)
- Children:
- fc194da
- Parents:
- ad2dc198
- git-author:
- Mahder Gebremedhin <mahder.gebremedhin@…> (09/18/20 10:31:28)
- git-committer:
- Mahder Gebremedhin <mahder.gebremedhin@…> (10/21/20 14:04:17)
- Location:
- OMCompiler
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
OMCompiler/CMakeLists.txt
r780c1e84 r7f25d743 2 2 project(OMCompiler) 3 3 4 # Variable for signifying that we are using the new CMake configuration. 4 5 # We use this to selectively include some cmake source files 5 6 # e.g. simulationRuntime/c/ has two cmake sources that are conditionally … … 27 28 omc_add_subdirectory(3rdParty) 28 29 29 # We want to make sure include directories are handled properly. C allows implicit function 30 # declaration. We have to disable that so that we can be consistent and correct with our inclusions. 30 # We do this after 3rdPart is added because some libs in FMILib use implicit function declration 31 # because of missing #defines due to bad configuration. 32 33 # We want to make sure include directories are handled properly. 34 # We have to disable implicit function declaration so that we can be consistent and correct with our inclusions. 31 35 if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "GNU") 32 36 add_compile_options($<$<COMPILE_LANGUAGE:C>:-Werror=implicit-function-declaration>) -
OMCompiler/Compiler/.cmake/dep_scanner.cpp
rf922c1f r7f25d743 77 77 } 78 78 79 rev_dep_file << pac.first << ": ";79 // rev_dep_file << pac.first << ": "; 80 80 for (const auto& depee : pac.second) { 81 rev_dep_file << depee << " 81 rev_dep_file << depee << ";"; 82 82 } 83 rev_dep_file << std::endl;83 // rev_dep_file << std::endl; 84 84 85 85 // if(pac.second.size() > largest) { -
OMCompiler/Compiler/CMakeLists.txt
r76fcdf3 r7f25d743 64 64 DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${file_name_no_ext}.interface.mo 65 65 # COMMAND ${CMAKE_COMMAND} -E cat ${CMAKE_CURRENT_BINARY_DIR}/${file_name_no_ext}.rev_depends 66 COMMAND ${CMAKE_COMMAND} -DREV_DEP_FILE=${CMAKE_CURRENT_BINARY_DIR}/${file_name_no_ext}.rev_depends 67 -DINTERFACE_FILES_DIR=${CMAKE_CURRENT_BINARY_DIR} 68 -P ${CMAKE_CURRENT_SOURCE_DIR}//.cmake/dep_toucher.cmake 66 69 COMMAND ${CMAKE_COMMAND} -E touch ${CMAKE_CURRENT_BINARY_DIR}/${file_name_no_ext}.rev_deps.stamp 67 70 OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${file_name_no_ext}.rev_deps.stamp 68 COMMENT "Touch eddependents of ${mo_source_file}"71 COMMENT "Touching dependents of ${mo_source_file}" 69 72 ) 70 73 set(OMC_REV_DEP_STAMP_FILES ${OMC_REV_DEP_STAMP_FILES} ${CMAKE_CURRENT_BINARY_DIR}/${file_name_no_ext}.rev_deps.stamp) … … 138 141 add_custom_target(DEPENDENCY_UPDATE 139 142 DEPENDS ${OMC_REV_DEP_STAMP_FILES} 140 COMMENT " Updated dependencies forMetaModelica sources.")143 COMMENT "Touched dependents of modified MetaModelica sources.") 141 144 142 145
Note: See TracChangeset
for help on using the changeset viewer.