clion variable set

在這裏插入圖片描述

cmake_minimum_required(VERSION 3.12)
project(GaussNewton)

set(CMAKE_CXX_STANDARD 14)
include_directories($ENV{CMAKE_INCLUDE_PATH})
add_executable(GaussNewton main.cpp)

don’t expect Clion to read bash shell variable,it’s impossible

Reference:
https://stackoverflow.com/questions/37662130/clion-or-cmake-does-not-see-environment-variable
http://mvlabat.github.io/ark-gsoc-2016/setting/up/environment/2016/05/18/lets-start-with-clion.html
https://stackoverflow.com/questions/42062245/c-program-through-clion-cannot-find-environment-variable

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章