Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LidarView
LidarView-Superbuild
Commits
f95082af
Commit
f95082af
authored
Oct 16, 2013
by
Casey Goodlett
Browse files
build: The flags are already passed explicitly do not also add to cflags
parent
f9eb163a
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
f95082af
cmake_minimum_required
(
VERSION 2.8.8
)
if
(
APPLE
)
if
(
NOT CMAKE_OSX_DEPLOYMENT_TARGET
)
message
(
WARNING
"Ensure that CMAKE_OSX_SYSROOT, CMAKE_OSX_DEPLOYMENT_TARGET are set correctly"
)
set
(
CMAKE_OSX_ARCHITECTURES
"x86_64"
CACHE STRING
"By default, build for 64-bit Leopard"
)
endif
()
endif
()
project
(
VeloViewSuperBuild
)
set
(
SuperBuild_CMAKE_DIR
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/CMake"
)
set
(
SuperBuild_PROJECTS_DIR
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/Projects"
)
...
...
@@ -76,11 +69,6 @@ else ()
set
(
ld_library_path
"
${
install_location
}
/lib:$ENV{LD_LIBRARY_PATH}"
)
endif
()
if
(
APPLE
)
set
(
cflags
"
${
cflags
}
-arch x86_64 -mmacosx-version-min=
${
CMAKE_OSX_DEPLOYMENT_TARGET
}
-sysroot=
${
CMAKE_OSX_SYSROOT
}
"
)
set
(
cppflags
"
${
cppflags
}
-arch x86_64 -mmacosx-version-min=
${
CMAKE_OSX_DEPLOYMENT_TARGET
}
-sysroot=
${
CMAKE_OSX_SYSROOT
}
"
)
set
(
cxxflags
"
${
cxxflags
}
-arch x86_64 -mmacosx-version-min=
${
CMAKE_OSX_DEPLOYMENT_TARGET
}
-sysroot=
${
CMAKE_OSX_SYSROOT
}
"
)
endif
()
set
(
prefix_path
"
${
install_location
}
"
)
# merge in default/user-specified CMake flags.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment