Skip to content

Commit

Permalink
Merge pull request #193 from henryleberre/master
Browse files Browse the repository at this point in the history
  • Loading branch information
sbryngelson authored Jul 27, 2023
2 parents 1311211 + c3bcb30 commit de90fba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,10 @@ find_program(FYPP_EXE fypp REQUIRED)


# Miscellaneous Configuration:
# * Enable C-Preprocessor for Fortran files
# * Explicitly link to -ldl (or system equivalent)
# * Request that FIND_LIBRARY searches <prefix>/lib/ and <prefix>/lib64/
# * Let FindXXX use custom scripts from toolchain/cmake/.

set(CMAKE_Fortran_PREPROCESS ON)
link_libraries("${CMAKE_DL_LIBS}")
set_property(GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS ON)
list(PREPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/toolchain/cmake")
Expand Down Expand Up @@ -290,6 +288,8 @@ function(MFC_SETUP_TARGET)

add_executable(${ARGS_TARGET} ${ARGS_SOURCES})

set_target_properties(${ARGS_TARGET} PROPERTIES Fortran_PREPROCESS ON)

target_include_directories(${ARGS_TARGET} PRIVATE
"${CMAKE_SOURCE_DIR}/src/common"
"${CMAKE_SOURCE_DIR}/src/common/include"
Expand Down

0 comments on commit de90fba

Please sign in to comment.