WSL/SLF GitLab Repository

Skip to content
Snippets Groups Projects
Commit 95638ae6 authored by Mathias Bavay's avatar Mathias Bavay
Browse files

Simplification of FindPopc.cmake and minor fix in CMakeLists.txt

parent acd2187f
No related branches found
No related tags found
No related merge requests found
......@@ -100,7 +100,7 @@ SET(POPC OFF CACHE BOOL "Compile for POPC ON or OFF")
###########################################################
#finally, SET compile flags
if(POPC)
IF(POPC)
#SET(POPC_FLAGS "-cxxmain -Dcerr=\\\"cout\\\"")
SET(POPC_FLAGS "-cxxmain")
ENDIF(POPC)
......
......@@ -3,9 +3,8 @@ INCLUDE(LibFindMacros)
FIND_PROGRAM(POPCC_EXECUTABLE popcc)
MARK_AS_ADVANCED(FORCE POPCC_EXECUTABLE)
#build POPC_ROOT so we can provide a hint for searching for the header file
IF("${POPCC_EXECUTABLE}" MATCHES "^(.+)bin[\\/]popcc(.*)$")
SET(POPC_ROOT "${CMAKE_MATCH_1}")
ENDIF("${POPCC_EXECUTABLE}" MATCHES "^(.+)bin[\\/]popcc(.*)$")
GET_FILENAME_COMPONENT(popc_exe_root ${POPCC_EXECUTABLE} PATH)
SET(POPC_ROOT "${popc_exe_root}/../")
# Finally the library itself
FIND_LIBRARY(Popc_LIBRARY
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment