[Solved] Problem with compiling
#2
Okay I solved it. For some reason cmake cannot properly replace the '${CMAKE_CURRENT_LIST_DIR}/polarssl/' string with the actual correct path. I modified the 9th line of the MCServer/lib/polarssl.cmake file, and replaced the string with the actual path.

Here is the modified file if someone needs:

Code:
if(NOT TARGET polarssl)
    message("including polarssl")
    set(ENABLE_TESTING OFF CACHE BOOL "Disable tests")
    set(ENABLE_PROGRAMS OFF CACHE BOOL "Disable programs")
    if (SELF_TEST)
        add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/polarssl/ ${CMAKE_CURRENT_BINARY_DIR}/lib/polarssl)
    else()
        add_subdirectory(/home/tomi35/MCServer/lib/polarssl/ ${CMAKE_CURRENT_BINARY_DIR}/lib/polarssl EXCLUDE_FROM_ALL)
#        add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/polarssl/ ${CMAKE_CURRENT_BINARY_DIR}/lib/polarssl EXCLUDE_FROM_ALL)
    endif()
endif()
Reply
Thanks given by:


Messages In This Thread
[Solved] Problem with compiling - by tomi35 - 08-25-2014, 05:45 AM
RE: Problem with compiling - by tomi35 - 08-25-2014, 06:15 AM
RE: [Solved] Problem with compiling - by tigerw - 08-25-2014, 07:15 AM
RE: [Solved] Problem with compiling - by bearbin - 08-26-2014, 12:33 AM



Users browsing this thread: 1 Guest(s)