Skip to content

Commit

Permalink
move enable c lang for poco
Browse files Browse the repository at this point in the history
Scoping it in SetupPoco was not working for modules that linked against
Poco libs. Moving the call up a level seems to fix this
  • Loading branch information
guruofquality committed May 8, 2020
1 parent 2a1f509 commit 8f92991
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions cmake/Modules/PothosConfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ include(PothosUtil) #utility functions
########################################################################
## locate the Poco development libraries
########################################################################
enable_language(C) #newer Poco config scrips require c to be enabled
include(SetupPoco)

if (Poco_FOUND)
Expand Down
1 change: 0 additions & 1 deletion cmake/Modules/SetupPoco.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ endif()
########################################################################
message(STATUS "PocoConfig not found - trying with FindPoco")
list(INSERT CMAKE_MODULE_PATH 0 ${CMAKE_CURRENT_LIST_DIR})
enable_language(C) #newer Poco config scrips require c to be enabled
find_package(Poco)
if (POCO_FOUND AND POCO_Util_FOUND AND POCO_Net_FOUND AND POCO_XML_FOUND)
########################################################################
Expand Down

0 comments on commit 8f92991

Please sign in to comment.