Skip to content

Commit

Permalink
Merge pull request #870 from jgarridoalcazar/fix-ext-module-include-path
Browse files Browse the repository at this point in the history
Bug fixed on cmake with user modules
  • Loading branch information
heplesser committed Feb 13, 2018
2 parents 7d4b03c + dc6006e commit 03ef9c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/ProcessOptions.cmake
Expand Up @@ -215,11 +215,11 @@ function( NEST_PROCESS_EXTERNAL_MODULES )
# find module header
find_file( ${mod}_EXT_MOD_INCLUDE
NAMES ${mod}module.h
HINTS "${CMAKE_INSTALL_FULL_INCLUDEDIR}"
HINTS "${CMAKE_INSTALL_FULL_INCLUDEDIR}/${mod}module"
)
if ( ${mod}_EXT_MOD_INCLUDE STREQUAL "${mod}_EXT_MOD_INCLUDE-NOTFOUND" )
message( FATAL_ERROR "Cannot find header for external module '${mod}'. "
"Should be '${CMAKE_INSTALL_FULL_INCLUDEDIR}/${mod}module.h' ." )
"Should be '${CMAKE_INSTALL_FULL_INCLUDEDIR}/${mod}module/${mod}module.h' ." )
endif ()
list( APPEND EXTERNAL_MODULE_INCLUDES ${${mod}_EXT_MOD_INCLUDE} )

Expand Down

0 comments on commit 03ef9c3

Please sign in to comment.