diff --git a/CMakeLists.txt b/CMakeLists.txt index 738f65cf..451d5551 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -407,6 +407,7 @@ if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin") configure_file(./cmake/TRIQSConfig.cmake.in Config/TRIQSConfig.cmake @ONLY) else() configure_file(./cmake/TRIQSConfig.cmake.in Config/TRIQSConfig1.cmake @ONLY ) + find_package(Python) # even in the case we use no python, cf issue #40 EXEC_PYTHON_SCRIPT( "import re;open('${CMAKE_CURRENT_BINARY_DIR}/Config/TRIQSConfig.cmake','w').write(re.sub(r';*\\s*-framework\\s+([a-zA-Z_][a-zA-Z_0-9]*)',r' \"-framework \\1\"',open('${CMAKE_CURRENT_BINARY_DIR}/Config/TRIQSConfig1.cmake').read()))", ConfigFile) endif()