Skip to content

Commit

Permalink
#197 CPack & GET_PREREQUISITES
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus Stoll committed Dec 18, 2014
1 parent 080a55f commit dc533c1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions operators/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,17 @@ MACRO(MSML_LIBRARY)
IF(WIN32 AND NOT CYGWIN)
ADD_LIBRARY(${ML_NAME} SHARED ${ML_SOURCES} "${CMAKE_SOURCE_DIR}/common/log.cpp")
set_target_properties (_${ML_NAME}Python PROPERTIES COMPILE_DEFINITIONS "PYTHONLOGGING") #experimental

string(TOUPPER "${CMAKE_BUILD_TYPE}" CONFIG)
GET_TARGET_PROPERTY(MY_BINARY_LOCATION ${ML_NAME} LOCATION_${CONFIG} )
INCLUDE(GetPrerequisites)
message(${MY_BINARY_LOCATION} " looking for DEPENDENCIES... ")
GET_PREREQUISITES(${MY_BINARY_LOCATION} DEPENDENCIES 1 1 "" "")
foreach(DEPENDENCY_FILE ${DEPENDENCIES})
gp_resolve_item("${MY_BINARY_LOCATION}" "${DEPENDENCY_FILE}" "" "" resolved_file)
message("resolved_file='${resolved_file}'")
endforeach()

ELSE()
set_target_properties (_${ML_NAME}Python PROPERTIES COMPILE_DEFINITIONS "PYTHONLOGGING")
ADD_LIBRARY(${ML_NAME} SHARED ${ML_SOURCES} "${CMAKE_SOURCE_DIR}/common/log.cpp")
Expand All @@ -214,3 +225,4 @@ ADD_SUBDIRECTORY(CLI)
ADD_SUBDIRECTORY(ACVDOperators)


INCLUDE(CPack)

0 comments on commit dc533c1

Please sign in to comment.