From a693ac33e328a65d0d7d9ed25dbc235fac79154b Mon Sep 17 00:00:00 2001 From: Diane Trout Date: Mon, 18 Sep 2006 22:48:19 +0000 Subject: [PATCH] Remember to include Platform to get PYTHON_LINK_LIBARIES ticket:125 I forgot to include Platform in the base CMakeLists.txt to get the definition of PYTHON_LINK_LIBRARIES. With that everything builds correctly. --- CMakeLists.txt | 1 + makelib/Platform.cmake | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ef3303a..544a572 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,7 @@ ENABLE_TESTING() CMAKE_MINIMUM_REQUIRED(VERSION 2.4) # try to include our cmake modules SET (CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/makelib) +INCLUDE(Platform) IF(NOT CMAKE_BUILD_TYPE) SET (CMAKE_BUILD_TYPE Debug CACHE STRING diff --git a/makelib/Platform.cmake b/makelib/Platform.cmake index d1f326b..87d8164 100644 --- a/makelib/Platform.cmake +++ b/makelib/Platform.cmake @@ -12,7 +12,7 @@ IF(PYTHONINTERP_FOUND) ARGS ${CMAKE_SOURCE_DIR}/makelib/python_config_var.py LINKFORSTATIC OUTPUT_VARIABLE PYTHON_LINKFORSTATIC ) ELSE(PYTHONINTERP_FOUND) - SET(PYTHON_EXTRA_LIBRARIES "") + SET(PYTHON_LINK_LIBRARIES "") SET(PYTHON_LINKFORSTATIC "") ENDIF(PYTHONINTERP_FOUND) -- 2.30.2