Browse Source

!16 use real path in cmake

Merge pull request !16 from xutianchun/realpath_0420
tags/v0.2.0-alpha
mindspore-ci-bot Gitee 4 years ago
parent
commit
43f5d24337
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      CMakeLists.txt

+ 1
- 1
CMakeLists.txt View File

@@ -109,7 +109,7 @@ else()
endif ()

# force __FILE__ to show relative path of file, from source directory, as cmake project makes __FILE__ absolute directory
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D__FILE__='\"$(subst ${CMAKE_SOURCE_DIR}/,,$(abspath $<))\"' -Wno-builtin-macro-redefined")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D__FILE__='\"$(subst $(realpath ${CMAKE_SOURCE_DIR})/,,$(abspath $<))\"' -Wno-builtin-macro-redefined")

# compile libraries from following directories
# libgraph is compiled in any situation


Loading…
Cancel
Save