projects
/
cross.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f5e703e
)
cpp32
author
Michael Wagner
<info@wagnertech.de>
Wed, 24 Mar 2021 18:31:23 +0000
(19:31 +0100)
committer
Michael Wagner
<info@wagnertech.de>
Wed, 24 Mar 2021 18:31:23 +0000
(19:31 +0100)
eldk-5.0/toolset.cmake
patch
|
blob
|
history
diff --git
a/eldk-5.0/toolset.cmake
b/eldk-5.0/toolset.cmake
index
f34f191
..
3dac072
100644
(file)
--- a/
eldk-5.0/toolset.cmake
+++ b/
eldk-5.0/toolset.cmake
@@
-9,18
+9,9
@@
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
# Search for libraries and headers in the target directories only
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
# Search for libraries and headers in the target directories only
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
-#add_definitions(-Wall -std=c11)
add_definitions(-Wall)
add_definitions(-Wall)
-#add_compile_options(-std=c++11)
-add_compile_options(--sysroot=/opt/cross/eldk-5.0/armv5te/sysroots/arm-linux-gnueabi/)
-#add_compile_options(-fPIC)
-#add_compile_options(-DSHARED)
-#set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32" )
-#set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 --sysroot=/home/debian10/aasync/cross/arm-linux-gnueabi-4.5//" )
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_ARMEL --sysroot=/opt/cross/eldk-5.0/armv5te/sysroots/arm-linux-gnueabi/" )
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_ARMEL --sysroot=/opt/cross/eldk-5.0/armv5te/sysroots/arm-linux-gnueabi/" )
-#set( CMAKE_LD_FLAGS "${CMAKE_LD_FLAGS} --sysroot=/home/debian10/aasync/cross/arm-linux-gnueabi-4.5//" )
set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} --sysrooot=/opt/cross/eldk-5.0/armv5te/sysroots/arm-linux-gnueabi/" )
set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} --sysrooot=/opt/cross/eldk-5.0/armv5te/sysroots/arm-linux-gnueabi/" )
-#set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -E -Wp,-v" )
-#set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -print-search-dirs" )
-#set(CMAKE_LIBRARY_PATH /home/debian10/aasync/cross/arm-linux-gnueabi-4.5/usr/lib/x86_64-linux-gnu/32)
+set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Icross/include -Icross/arm-linux-gnueabi/include" )
+link_directories(${CMAKE_HOME_DIRECTORY}/cross/arm-linux-gnueabi/lib)