11# ----------------------------------------------------------------------------
22# Title : ROGUE CMAKE Control
33# ----------------------------------------------------------------------------
4- # This file is part of the rogue software package. It is subject to
5- # the license terms in the LICENSE.txt file found in the top-level directory
6- # of this distribution and at:
7- # https://confluence.slac.stanford.edu/display/ppareg/LICENSE.html.
8- # No part of the rogue software package, including this file, may be
9- # copied, modified, propagated, or distributed except according to the terms
4+ # This file is part of the rogue software package. It is subject to
5+ # the license terms in the LICENSE.txt file found in the top-level directory
6+ # of this distribution and at:
7+ # https://confluence.slac.stanford.edu/display/ppareg/LICENSE.html.
8+ # No part of the rogue software package, including this file, may be
9+ # copied, modified, propagated, or distributed except according to the terms
1010# contained in the LICENSE.txt file.
1111# ----------------------------------------------------------------------------
1212# See notes for compiling on macros under anaconda:
@@ -40,7 +40,7 @@ add_definitions(-D__STDC_FORMAT_MACROS)
4040#####################################
4141# Boost + Python
4242#####################################
43- if ( NOT NO_PYTHON )
43+ if ( NOT NO_PYTHON )
4444 find_package (PythonInterp 3.6 QUIET REQUIRED)
4545 find_package (PythonLibs 3.6 QUIET REQUIRED)
4646
@@ -112,7 +112,7 @@ find_package(ZeroMQ QUIET)
112112
113113# ZeroMQ does not always support cmake, use brute force
114114if (NOT ZeroMQ_FOUND)
115-
115+
116116 # Convert LD_LIBRARY PATH for search
117117 if (DEFINED ENV{LD_LIBRARY_PATH})
118118 string (REPLACE ":" ";" HINT_PATHS $ENV{LD_LIBRARY_PATH} )
@@ -121,12 +121,12 @@ if (NOT ZeroMQ_FOUND)
121121 endif ()
122122
123123 # See if zmq library is in LD_LIBRARY_PATH
124- find_library (ZeroMQ_LIBRARY
125- NAMES zmq
124+ find_library (ZeroMQ_LIBRARY
125+ NAMES zmq
126126 PATHS ${HINT_PATHS} )
127127
128128 # Found it
129- if (ZeroMQ_LIBRARY)
129+ if (ZeroMQ_LIBRARY)
130130
131131 # Get the base directory
132132 get_filename_component (ZMQ_LIBDIR ${ZeroMQ_LIBRARY} DIRECTORY )
@@ -156,7 +156,7 @@ if((NOT NO_PYTHON) AND (NOT NO_EPICS) AND DEFINED ENV{EPICS_BASE})
156156 if (DEFINED ENV{EPICS_HOST_ARCH})
157157 set (EPICS_ARCH $ENV{EPICS_HOST_ARCH} )
158158 else ()
159- execute_process (COMMAND ${EPICS_BASE_DIR} /startup/EpicsHostArch
159+ execute_process (COMMAND ${EPICS_BASE_DIR} /startup/EpicsHostArch
160160 OUTPUT_VARIABLE EPICS_ARCH OUTPUT_STRIP_TRAILING_WHITESPACE)
161161 string (REGEX REPLACE "\n $" "" EPICS_ARCH "${EPICS_ARCH} " )
162162 endif ()
@@ -178,23 +178,23 @@ if((NOT NO_PYTHON) AND (NOT NO_EPICS) AND DEFINED ENV{EPICS_BASE})
178178
179179 set (EPICS_INCLUDES ${EPICS_PCAS_DIR} /include
180180 ${EPICS_BASE_DIR} /include
181- ${EPICS_BASE_DIR} /include /compiler/gcc
181+ ${EPICS_BASE_DIR} /include /compiler/gcc
182182 ${EPICS_BASE_DIR} /include /os/Darwin)
183183
184- set (EPICS_LIBRARIES ${EPICS_PCAS_DIR} /lib/${EPICS_ARCH} /libcas.dylib
184+ set (EPICS_LIBRARIES ${EPICS_PCAS_DIR} /lib/${EPICS_ARCH} /libcas.dylib
185185 ${EPICS_PCAS_DIR} /lib/${EPICS_ARCH} /libgdd.dylib
186- ${EPICS_BASE_DIR} /lib/${EPICS_ARCH} /libca.dylib
186+ ${EPICS_BASE_DIR} /lib/${EPICS_ARCH} /libca.dylib
187187 ${EPICS_BASE_DIR} /lib/${EPICS_ARCH} /libCom.dylib )
188188 else ()
189189
190190 set (EPICS_INCLUDES ${EPICS_PCAS_DIR} /include
191191 ${EPICS_BASE_DIR} /include
192- ${EPICS_BASE_DIR} /include /compiler/gcc
192+ ${EPICS_BASE_DIR} /include /compiler/gcc
193193 ${EPICS_BASE_DIR} /include /os/Linux)
194194
195- set (EPICS_LIBRARIES ${EPICS_PCAS_DIR} /lib/${EPICS_ARCH} /libcas.so
195+ set (EPICS_LIBRARIES ${EPICS_PCAS_DIR} /lib/${EPICS_ARCH} /libcas.so
196196 ${EPICS_PCAS_DIR} /lib/${EPICS_ARCH} /libgdd.so
197- ${EPICS_BASE_DIR} /lib/${EPICS_ARCH} /libca.so
197+ ${EPICS_BASE_DIR} /lib/${EPICS_ARCH} /libca.so
198198 ${EPICS_BASE_DIR} /lib/${EPICS_ARCH} /libCom.so )
199199 endif ()
200200else ()
@@ -204,7 +204,7 @@ endif()
204204##########################################################
205205# Generate version with GIT If Not Passed As -DVERSION
206206##########################################################
207- if ( NOT ROGUE_VERSION )
207+ if ( NOT ROGUE_VERSION )
208208
209209 # Set version from git tag
210210 find_package (Git QUIET )
@@ -226,7 +226,7 @@ endif()
226226#####################################
227227
228228# Default install type
229- if ( NOT ROGUE_INSTALL )
229+ if ( NOT ROGUE_INSTALL )
230230 if (DEFINED ENV{CONDA_PREFIX})
231231 set (ROGUE_INSTALL "conda" )
232232 else ()
@@ -237,7 +237,7 @@ endif()
237237# Default Install directory
238238if (${ROGUE_INSTALL} STREQUAL "local" )
239239 set (ROGUE_DIR ${PROJECT_SOURCE_DIR} )
240- elseif (NOT ROGUE_DIR)
240+ elseif (NOT ROGUE_DIR)
241241 if (${ROGUE_INSTALL} STREQUAL "custom" )
242242 set (ROGUE_DIR "$ENV{CONDA_PREFIX} /${CMAKE_INSTALL_PREFIX} /rogue" )
243243 elseif (${ROGUE_INSTALL} STREQUAL "conda" )
@@ -300,7 +300,7 @@ else()
300300 TARGET_LINK_LIBRARIES (rogue-core-shared LINK_PUBLIC rt)
301301endif ()
302302
303- if (STATIC_LIB)
303+ if (STATIC_LIB)
304304 add_library (rogue-core-static STATIC $<TARGET_OBJECTS:rogue-core> "" )
305305 set_target_properties (rogue-core-static PROPERTIES OUTPUT_NAME librogue-core)
306306 set_target_properties (rogue-core-static PROPERTIES PREFIX "" SUFFIX ".a" )
@@ -357,7 +357,7 @@ else()
357357endif ()
358358
359359# Create the config file
360- configure_file (${PROJECT_SOURCE_DIR} /templates/RogueConfig.cmake.in
360+ configure_file (${PROJECT_SOURCE_DIR} /templates/RogueConfig.cmake.in
361361 ${PROJECT_BINARY_DIR} /RogueConfig.cmake @ONLY)
362362
363363# Create the setup files
@@ -412,17 +412,17 @@ if (NOT NO_PYTHON)
412412 # Use setuptools with python3 for system
413413 elseif (${ROGUE_INSTALL} STREQUAL "system" )
414414 install (CODE "execute_process(COMMAND python3 ${PROJECT_SOURCE_DIR} /build/setup.py install)" )
415-
415+
416416 # Use setuptools with python for anaconda
417417 elseif (${ROGUE_INSTALL} STREQUAL "conda" )
418- install (CODE "execute_process(COMMAND python
418+ install (CODE "execute_process(COMMAND python
419419 ${PROJECT_SOURCE_DIR} /build/setup.py install --prefix=${ROGUE_DIR} )" )
420420 endif ()
421421
422422 # Do byte compile for custom or local
423423 if ((${ROGUE_INSTALL} STREQUAL "custom" ) OR (${ROGUE_INSTALL} STREQUAL "local" ))
424424 install (CODE "execute_process(COMMAND python3 -m compileall ${ROGUE_DIR} /python)" )
425- endif ()
425+ endif ()
426426
427427endif ()
428428
0 commit comments