Commit 03205837 authored by Adnan's avatar Adnan

fixed cmake build if built as part of an external project

parent 8bfe9602
...@@ -21,7 +21,7 @@ if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC") ...@@ -21,7 +21,7 @@ if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4267 /wd4244") SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4267 /wd4244")
ENDIF() ENDIF()
get_filename_component(MAIN_DIR ${CMAKE_SOURCE_DIR} PATH) get_filename_component(MAIN_DIR ${CMAKE_CURRENT_SOURCE_DIR} PATH)
SET(TEST_DIR ${MAIN_DIR}/t) SET(TEST_DIR ${MAIN_DIR}/t)
MESSAGE(${MAIN_DIR}) MESSAGE(${MAIN_DIR})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment