Remember to include Platform to get PYTHON_LINK_LIBARIES
authorDiane Trout <diane@caltech.edu>
Mon, 18 Sep 2006 22:48:19 +0000 (22:48 +0000)
committerDiane Trout <diane@caltech.edu>
Mon, 18 Sep 2006 22:48:19 +0000 (22:48 +0000)
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
makelib/Platform.cmake

index ef3303a21a2fb54d61c143d3b654635e651c611e..544a572f0ba0bb78192200b25be12d9eebefbf08 100644 (file)
@@ -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
index d1f326b800e475ec6cd9f20e19a2abbb10820e6e..87d81640907d421d0a4060b9cf51621eee21cb0c 100644 (file)
@@ -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)