Skip to content

Commit e82b86f

Browse files
committed
- build exe only with cgns
1 parent ce53323 commit e82b86f

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

modules/aero/CMakeLists.txt

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -211,11 +211,13 @@ endif(WITH_TEST)
211211
#==============================================================================
212212
# EXECUTABLE
213213
#==============================================================================
214-
add_executable(Aero src/main.cpp)
215-
target_link_libraries(Aero PRIVATE ${GMDS_LIB})
216-
target_compile_features(Aero PUBLIC cxx_std_14)
217-
install(TARGETS Aero)
214+
if(WITH_CGNS)
215+
add_executable(Aero src/main.cpp)
216+
target_link_libraries(Aero PRIVATE ${GMDS_LIB})
217+
target_compile_features(Aero PUBLIC cxx_std_14)
218+
install(TARGETS Aero)
218219

219-
add_executable(aero_dev src/main_dev.cpp)
220-
target_link_libraries(aero_dev PRIVATE ${GMDS_LIB})
221-
target_compile_features(aero_dev PUBLIC cxx_std_14)
220+
add_executable(aero_dev src/main_dev.cpp)
221+
target_link_libraries(aero_dev PRIVATE ${GMDS_LIB})
222+
target_compile_features(aero_dev PUBLIC cxx_std_14)
223+
endif ()

0 commit comments

Comments
 (0)