Skip to content

Commit

Permalink
Add fix for compiling only KPP subdirectory that is needed
Browse files Browse the repository at this point in the history
Signed-off-by: Melissa Sulprizio <mpayer@seas.harvard.edu>
  • Loading branch information
msulprizio committed Aug 14, 2020
1 parent d49d1e3 commit 35f7d14
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
5 changes: 2 additions & 3 deletions Headers/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ add_library(Headers STATIC EXCLUDE_FROM_ALL
)
target_link_libraries(Headers
PUBLIC
$<$<STREQUAL:${MECH},SOA_SVPOA>:KPPFirstPass_SOA_SVPOA>
$<$<STREQUAL:${MECH},Standard>:KPPFirstPass_Standard>
$<$<STREQUAL:${MECH},Tropchem>:KPPFirstPass_Tropchem>
$<$<STREQUAL:${MECH},fullchem>:KPPFirstPass_fullchem>
$<$<STREQUAL:${MECH},custom>:KPPFirstPass_custom>
)

9 changes: 7 additions & 2 deletions KPP/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
add_subdirectory(fullchem)
add_subdirectory(custom)
if("${MECH}" STREQUAL fullchem)
add_subdirectory(fullchem)
endif()
if("${MECH}" STREQUAL custom)
add_subdirectory(custom)
endif()

0 comments on commit 35f7d14

Please sign in to comment.